projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d26aa7
)
leds-wm8350: don't use flush_scheduled_work()
author
Tejun Heo
<tj@kernel.org>
Fri, 24 Dec 2010 14:59:07 +0000
(15:59 +0100)
committer
Tejun Heo
<tj@kernel.org>
Fri, 24 Dec 2010 14:59:07 +0000
(15:59 +0100)
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>
drivers/leds/leds-wm8350.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-wm8350.c
b/drivers/leds/leds-wm8350.c
index
5aab32c
..
a045232
100644
(file)
--- 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)
struct wm8350_led *led = platform_get_drvdata(pdev);
led_classdev_unregister(&led->cdev);
- flush_
scheduled_work(
);
+ flush_
work_sync(&led->work
);
wm8350_led_disable(led);
regulator_put(led->dcdc);
regulator_put(led->isink);