Skip to content

Commit

Permalink
power_supply: Fix sparse non static symbol warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Sebastian Reichel committed Jul 20, 2014
1 parent 6bb1d27 commit c128d39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/power/power_supply_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c128d39

Please sign in to comment.