aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-12-24 09:59:07 -0500
committerTejun Heo <tj@kernel.org>2010-12-24 09:59:07 -0500
commit99ef21216b4f85c56392ed41500d2f07f58cc360 (patch)
treebd98bd0d2428997118d646d8070694b13f55c250 /drivers/leds
parent0d26aa704e5bbca5a1ee9fdf0d02277ceb507eee (diff)
leds-wm8350: don't use flush_scheduled_work()
flush_scheduled_work() is deprecated and scheduled to be removed. Directly flush led->work on removal instead. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-wm8350.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-wm8350.c b/drivers/leds/leds-wm8350.c
index 5aab32ce4f4d..a04523273282 100644
--- a/drivers/leds/leds-wm8350.c
+++ b/drivers/leds/leds-wm8350.c
@@ -276,7 +276,7 @@ static int wm8350_led_remove(struct platform_device *pdev)
276 struct wm8350_led *led = platform_get_drvdata(pdev); 276 struct wm8350_led *led = platform_get_drvdata(pdev);
277 277
278 led_classdev_unregister(&led->cdev); 278 led_classdev_unregister(&led->cdev);
279 flush_scheduled_work(); 279 flush_work_sync(&led->work);
280 wm8350_led_disable(led); 280 wm8350_led_disable(led);
281 regulator_put(led->dcdc); 281 regulator_put(led->dcdc);
282 regulator_put(led->isink); 282 regulator_put(led->isink);