diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-09-21 08:35:57 (GMT) |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-09-22 12:14:49 (GMT) |
commit | 305da8f504dc82ccc0e0ca9aa1889de9e2517090 (patch) | |
tree | 76d4064f8700fb9f64555f9aaf8674fea9d61d49 /drivers/power | |
parent | a7640bfa10c558b7cbabb4b98d6bc356d3c2ec55 (diff) | |
download | linux-fsl-qoriq-305da8f504dc82ccc0e0ca9aa1889de9e2517090.tar.xz |
pcf50633-charger: Add missing sysfs_remove_group()
sysfs entries should be removed when unload the module.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/pcf50633-charger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/pcf50633-charger.c b/drivers/power/pcf50633-charger.c index 066f994..4fa52e1 100644 --- a/drivers/power/pcf50633-charger.c +++ b/drivers/power/pcf50633-charger.c @@ -456,6 +456,7 @@ static int __devexit pcf50633_mbc_remove(struct platform_device *pdev) for (i = 0; i < ARRAY_SIZE(mbc_irq_handlers); i++) pcf50633_free_irq(mbc->pcf, mbc_irq_handlers[i]); + sysfs_remove_group(&pdev->dev.kobj, &mbc_attr_group); power_supply_unregister(&mbc->usb); power_supply_unregister(&mbc->adapter); power_supply_unregister(&mbc->ac); |