diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2012-01-05 15:17:25 (GMT) |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-01-07 11:24:51 (GMT) |
commit | 93278d151e7bd35ccd0e083d7f2d8123cbaf36f8 (patch) | |
tree | d1a2d0dd3465ac0bcec7464f6d3fb70535dcaea9 /drivers | |
parent | 34aed73df3a9e75e313a7510b201f6755ae3e6bc (diff) | |
download | linux-fsl-qoriq-93278d151e7bd35ccd0e083d7f2d8123cbaf36f8.tar.xz |
power_supply: Drop usage of nowarn variant of sysfs_create_link()
The function is not exported to modules, plus we do want to catch anyone
who tries to create complex hierarchy (in that case we'd need to change
'powers' symlink to a directory, probably under a different name to not
break ABI).
This patch fixes the following build error:
ERROR: "sysfs_create_link_nowarn" [drivers/power/power_supply.ko] undefined!
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/power_supply_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c index bc82f95..6ad6127 100644 --- a/drivers/power/power_supply_core.c +++ b/drivers/power/power_supply_core.c @@ -159,7 +159,7 @@ EXPORT_SYMBOL_GPL(power_supply_get_by_name); int power_supply_powers(struct power_supply *psy, struct device *dev) { - return sysfs_create_link_nowarn(&psy->dev->kobj, &dev->kobj, "powers"); + return sysfs_create_link(&psy->dev->kobj, &dev->kobj, "powers"); } EXPORT_SYMBOL_GPL(power_supply_powers); |