diff options
Diffstat (limited to 'drivers/power/intel_mid_battery.c')
-rw-r--r-- | drivers/power/intel_mid_battery.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/power/intel_mid_battery.c b/drivers/power/intel_mid_battery.c index 2a10cd361181..36cf402c0677 100644 --- a/drivers/power/intel_mid_battery.c +++ b/drivers/power/intel_mid_battery.c | |||
@@ -730,8 +730,7 @@ static __devinit int probe(int irq, struct device *dev) | |||
730 | power_reg_failed_1: | 730 | power_reg_failed_1: |
731 | power_supply_unregister(&pbi->batt); | 731 | power_supply_unregister(&pbi->batt); |
732 | power_reg_failed: | 732 | power_reg_failed: |
733 | cancel_rearming_delayed_workqueue(pbi->monitor_wqueue, | 733 | cancel_delayed_work_sync(&pbi->monitor_battery); |
734 | &pbi->monitor_battery); | ||
735 | requestirq_failed: | 734 | requestirq_failed: |
736 | destroy_workqueue(pbi->monitor_wqueue); | 735 | destroy_workqueue(pbi->monitor_wqueue); |
737 | wqueue_failed: | 736 | wqueue_failed: |
@@ -760,8 +759,7 @@ static int __devexit platform_pmic_battery_remove(struct platform_device *pdev) | |||
760 | struct pmic_power_module_info *pbi = dev_get_drvdata(&pdev->dev); | 759 | struct pmic_power_module_info *pbi = dev_get_drvdata(&pdev->dev); |
761 | 760 | ||
762 | free_irq(pbi->irq, pbi); | 761 | free_irq(pbi->irq, pbi); |
763 | cancel_rearming_delayed_workqueue(pbi->monitor_wqueue, | 762 | cancel_delayed_work_sync(&pbi->monitor_battery); |
764 | &pbi->monitor_battery); | ||
765 | destroy_workqueue(pbi->monitor_wqueue); | 763 | destroy_workqueue(pbi->monitor_wqueue); |
766 | 764 | ||
767 | power_supply_unregister(&pbi->usb); | 765 | power_supply_unregister(&pbi->usb); |