summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Shych <michaelsh@nvidia.com>2022-06-02 17:51:03 +0300
committerHans de Goede <hdegoede@redhat.com>2022-06-10 21:59:08 +0200
commitb9c29f391f4195a778620f3d2efd0d9746a414fe (patch)
treeb4ce0497ce2d0a4e55dd382ef544fab9cb6eef0b /drivers
parenta4c934d74e408cb5ea5209b5fdf6184e3e250b1b (diff)
downloadlinux-b9c29f391f4195a778620f3d2efd0d9746a414fe.tar.bz2
platform/mellanox: Add static in struct declaration.
Fix problem of missing static in struct declaration. Fixes: 662f24826f954 ("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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/mellanox/nvsw-sn2201.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/mellanox/nvsw-sn2201.c b/drivers/platform/mellanox/nvsw-sn2201.c
index 0bcdc7c75007..2923daf63b75 100644
--- a/drivers/platform/mellanox/nvsw-sn2201.c
+++ b/drivers/platform/mellanox/nvsw-sn2201.c
@@ -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,
};