diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-05 06:42:11 -0400 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-10-16 16:45:07 -0400 |
commit | 36c282b31f648b31373be0dc8c2475c22fcab02a (patch) | |
tree | 17ad11d84425b83945c1959eb06fb9c0f66413fd /drivers/platform/x86/mlx-platform.c | |
parent | 485f2a5811f9d87d5b634d068b5c7574fd1bb09e (diff) |
platform/x86: mlx-platform: make a couple of structures static
The structures mlxplat_dev and mlxplat_hotplug are local to the source
and do not need to be in global scope, so make them static.
Cleans up sparse warnings:
symbol 'mlxplat_dev' was not declared. Should it be static?
symbol 'mlxplat_hotplug' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/platform/x86/mlx-platform.c')
-rw-r--r-- | drivers/platform/x86/mlx-platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index 4f3de2a8c4df..504256c3660d 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c | |||
@@ -216,8 +216,8 @@ static struct resource mlxplat_mlxcpld_resources[] = { | |||
216 | [0] = DEFINE_RES_IRQ_NAMED(17, "mlxcpld-hotplug"), | 216 | [0] = DEFINE_RES_IRQ_NAMED(17, "mlxcpld-hotplug"), |
217 | }; | 217 | }; |
218 | 218 | ||
219 | struct platform_device *mlxplat_dev; | 219 | static struct platform_device *mlxplat_dev; |
220 | struct mlxcpld_hotplug_platform_data *mlxplat_hotplug; | 220 | static struct mlxcpld_hotplug_platform_data *mlxplat_hotplug; |
221 | 221 | ||
222 | static int __init mlxplat_dmi_default_matched(const struct dmi_system_id *dmi) | 222 | static int __init mlxplat_dmi_default_matched(const struct dmi_system_id *dmi) |
223 | { | 223 | { |