ipaq_micro_battery: fix sparse non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 28 Jul 2014 13:14:21 +0000 (21:14 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 28 Jul 2014 13:36:29 +0000 (15:36 +0200)
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/ipaq_micro_battery.c

index 54632eabf420c93d6eb7f979f0ac8b839e13b996..9d694605cdb77f35456dad106425b760266f7927 100644 (file)
@@ -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     = &micro_batt_dev_pm_ops,