diff options
author | Tejun Heo <tj@kernel.org> | 2010-12-14 10:21:17 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-12-15 04:56:11 -0500 |
commit | afe2c511fb2d75f1515081ff1be15bd79cfe722d (patch) | |
tree | 28aa74e9e0c654a95bf3306101e10ac1d16919d1 /drivers/power | |
parent | 2d64672ed38721b7a3815009d79bfb90a1f34a17 (diff) |
workqueue: convert cancel_rearming_delayed_work[queue]() users to cancel_delayed_work_sync()
cancel_rearming_delayed_work[queue]() has been superceded by
cancel_delayed_work_sync() quite some time ago. Convert all the
in-kernel users. The conversions are completely equivalent and
trivial.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: "David S. Miller" <davem@davemloft.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: netdev@vger.kernel.org
Cc: Anton Vorontsov <cbou@mail.ru>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Neil Brown <neilb@suse.de>
Cc: Alex Elder <aelder@sgi.com>
Cc: xfs-masters@oss.sgi.com
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: netfilter-devel@vger.kernel.org
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: linux-nfs@vger.kernel.org
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/ds2760_battery.c | 6 | ||||
-rw-r--r-- | drivers/power/intel_mid_battery.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c index b3c01c16a164..e7f89785beef 100644 --- a/drivers/power/ds2760_battery.c +++ b/drivers/power/ds2760_battery.c | |||
@@ -580,10 +580,8 @@ static int ds2760_battery_remove(struct platform_device *pdev) | |||
580 | { | 580 | { |
581 | struct ds2760_device_info *di = platform_get_drvdata(pdev); | 581 | struct ds2760_device_info *di = platform_get_drvdata(pdev); |
582 | 582 | ||
583 | cancel_rearming_delayed_workqueue(di->monitor_wqueue, | 583 | cancel_delayed_work_sync(&di->monitor_work); |
584 | &di->monitor_work); | 584 | cancel_delayed_work_sync(&di->set_charged_work); |
585 | cancel_rearming_delayed_workqueue(di->monitor_wqueue, | ||
586 | &di->set_charged_work); | ||
587 | destroy_workqueue(di->monitor_wqueue); | 585 | destroy_workqueue(di->monitor_wqueue); |
588 | power_supply_unregister(&di->bat); | 586 | power_supply_unregister(&di->bat); |
589 | kfree(di); | 587 | kfree(di); |
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); |