power_supply: Don't use flush_scheduled_work()
authorTejun Heo <tj@kernel.org>
Sat, 11 Dec 2010 16:51:45 +0000 (17:51 +0100)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 21 Dec 2010 23:39:56 +0000 (02:39 +0300)
commitbc51e7ff521f28a7f14dc2f25307ad9101d1305a
tree011477cb2e90d2038261170a4e688f795d6720f9
parent3a2dbd611b38cf9a026c0099a85701ad183d1949
power_supply: Don't use flush_scheduled_work()

flush_scheduled_work() is deprecated and scheduled to be removed.

In battery drivers, the work can be canceled on probe failure and
removal and should be flushed on suspend.  Replace
flush_scheduled_work() usages with direct cancels and flushes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/collie_battery.c
drivers/power/intel_mid_battery.c
drivers/power/power_supply_core.c
drivers/power/tosa_battery.c
drivers/power/wm97xx_battery.c
drivers/power/z2_battery.c