aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/intel_mid_battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/intel_mid_battery.c')
-rw-r--r--drivers/power/intel_mid_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/intel_mid_battery.c b/drivers/power/intel_mid_battery.c
index 2a10cd361181..236147c3a5c6 100644
--- a/drivers/power/intel_mid_battery.c
+++ b/drivers/power/intel_mid_battery.c
@@ -767,7 +767,7 @@ static int __devexit platform_pmic_battery_remove(struct platform_device *pdev)
767 power_supply_unregister(&pbi->usb); 767 power_supply_unregister(&pbi->usb);
768 power_supply_unregister(&pbi->batt); 768 power_supply_unregister(&pbi->batt);
769 769
770 flush_scheduled_work(); 770 cancel_work_sync(&pbi->handler);
771 kfree(pbi); 771 kfree(pbi);
772 return 0; 772 return 0;
773} 773}