Skip to content

Commit

Permalink
platform/mellanox: Add static in struct declaration.
Browse files Browse the repository at this point in the history
Fix problem of missing static in struct declaration.

Fixes: 662f248 ("platform/mellanox: Add support for new SN2201 system")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Michael Shych <michaelsh@nvidia.com>
Link: https://lore.kernel.org/r/20220602145103.11859-1-michaelsh@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  • Loading branch information
Michael Shych authored and Hans de Goede committed Jun 10, 2022
1 parent a4c934d commit b9c29f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/mellanox/nvsw-sn2201.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static struct resource nvsw_sn2201_lpc_res[] = {
};

/* SN2201 I2C platform data. */
struct mlxreg_core_hotplug_platform_data nvsw_sn2201_i2c_data = {
static struct mlxreg_core_hotplug_platform_data nvsw_sn2201_i2c_data = {
.irq = NVSW_SN2201_CPLD_SYSIRQ,
};

Expand Down

0 comments on commit b9c29f3

Please sign in to comment.