From 305da8f504dc82ccc0e0ca9aa1889de9e2517090 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 21 Sep 2010 16:35:57 +0800 Subject: pcf50633-charger: Add missing sysfs_remove_group() sysfs entries should be removed when unload the module. Signed-off-by: Axel Lin Signed-off-by: Anton Vorontsov --- drivers/power/pcf50633-charger.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/power') 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) 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); -- cgit v1.2.3