diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-09-21 16:35:57 +0800 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-09-22 16:14:49 +0400 |
commit | 305da8f504dc82ccc0e0ca9aa1889de9e2517090 (patch) | |
tree | 76d4064f8700fb9f64555f9aaf8674fea9d61d49 /drivers/power/pcf50633-charger.c | |
parent | a7640bfa10c558b7cbabb4b98d6bc356d3c2ec55 (diff) |
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/pcf50633-charger.c')
-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 066f994e6fe..4fa52e1781a 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); |