diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-09-21 04:35:57 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-09-22 08:14:49 -0400 |
commit | 305da8f504dc82ccc0e0ca9aa1889de9e2517090 (patch) | |
tree | 76d4064f8700fb9f64555f9aaf8674fea9d61d49 /drivers | |
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')
-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 066f994e6fe5..4fa52e1781a2 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) | |||
456 | for (i = 0; i < ARRAY_SIZE(mbc_irq_handlers); i++) | 456 | for (i = 0; i < ARRAY_SIZE(mbc_irq_handlers); i++) |
457 | pcf50633_free_irq(mbc->pcf, mbc_irq_handlers[i]); | 457 | pcf50633_free_irq(mbc->pcf, mbc_irq_handlers[i]); |
458 | 458 | ||
459 | sysfs_remove_group(&pdev->dev.kobj, &mbc_attr_group); | ||
459 | power_supply_unregister(&mbc->usb); | 460 | power_supply_unregister(&mbc->usb); |
460 | power_supply_unregister(&mbc->adapter); | 461 | power_supply_unregister(&mbc->adapter); |
461 | power_supply_unregister(&mbc->ac); | 462 | power_supply_unregister(&mbc->ac); |