From: Wei Yongjun Date: Mon, 28 Jul 2014 13:14:21 +0000 (+0800) Subject: ipaq_micro_battery: fix sparse non static symbol warning X-Git-Tag: v3.17-rc1~103^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5e37195f30cc31e6a1052cbc282254e127c1b8c7;p=uclinux-h8%2Flinux.git ipaq_micro_battery: fix sparse non static symbol warning Fixes the following sparse warnings: drivers/power/ipaq_micro_battery.c:278:24: warning: symbol 'micro_batt_device_driver' was not declared. Should it be static? Signed-off-by: Wei Yongjun Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/ipaq_micro_battery.c b/drivers/power/ipaq_micro_battery.c index 54632eabf420..9d694605cdb7 100644 --- a/drivers/power/ipaq_micro_battery.c +++ b/drivers/power/ipaq_micro_battery.c @@ -275,7 +275,7 @@ static const struct dev_pm_ops micro_batt_dev_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(micro_batt_suspend, micro_batt_resume) }; -struct platform_driver micro_batt_device_driver = { +static struct platform_driver micro_batt_device_driver = { .driver = { .name = "ipaq-micro-battery", .pm = µ_batt_dev_pm_ops,