aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2014-07-20 01:31:09 -0400
committerSebastian Reichel <sre@kernel.org>2014-07-20 03:22:34 -0400
commitc128d39737fbf23d978eb05a9c7915507a69c1df (patch)
treeb8f4d69974800bd3a0f199e11bc13dedfe493e5a /drivers/power
parent6bb1d272d7c9f5dcfbb790d6aef47d8f82dccbf5 (diff)
power_supply: Fix sparse non static symbol warning
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/power_supply_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c
index 5a5a24e7d43c..078afd61490d 100644
--- a/drivers/power/power_supply_core.c
+++ b/drivers/power/power_supply_core.c
@@ -537,7 +537,8 @@ static void psy_unregister_cooler(struct power_supply *psy)
537} 537}
538#endif 538#endif
539 539
540int __power_supply_register(struct device *parent, struct power_supply *psy, bool ws) 540static int __power_supply_register(struct device *parent,
541 struct power_supply *psy, bool ws)
541{ 542{
542 struct device *dev; 543 struct device *dev;
543 int rc; 544 int rc;