power_supply: Fix sparse non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 20 Jul 2014 05:31:09 +0000 (13:31 +0800)
committerSebastian Reichel <sre@kernel.org>
Sun, 20 Jul 2014 07:22:34 +0000 (09:22 +0200)
Fixes the following sparse warnings:

drivers/power/power_supply_core.c:540:5: warning:
 symbol '__power_supply_register' 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/power_supply_core.c

index 5a5a24e7d43c25f6d23bbc686cf3fb27697ad2a9..078afd61490d15cfeb9dd29517785430a634ec28 100644 (file)
@@ -537,7 +537,8 @@ static void psy_unregister_cooler(struct power_supply *psy)
 }
 #endif
 
-int __power_supply_register(struct device *parent, struct power_supply *psy, bool ws)
+static int __power_supply_register(struct device *parent,
+                                  struct power_supply *psy, bool ws)
 {
        struct device *dev;
        int rc;