Commit c128d397 authored by Wei Yongjun's avatar Wei Yongjun Committed by Sebastian Reichel

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 6bb1d272
...@@ -537,7 +537,8 @@ static void psy_unregister_cooler(struct power_supply *psy) ...@@ -537,7 +537,8 @@ static void psy_unregister_cooler(struct power_supply *psy)
} }
#endif #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; struct device *dev;
int rc; int rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment