mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Cc: Richard Purdie <[email protected]>
This commit is contained in:
parent
0d26aa704e
commit
99ef21216b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue