提交 99ef2121 编写于 作者: T Tejun Heo

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: NTejun Heo <tj@kernel.org>
Cc: Richard Purdie <rpurdie@rpsys.net>
上级 0d26aa70
...@@ -276,7 +276,7 @@ static int wm8350_led_remove(struct platform_device *pdev) ...@@ -276,7 +276,7 @@ static int wm8350_led_remove(struct platform_device *pdev)
struct wm8350_led *led = platform_get_drvdata(pdev); struct wm8350_led *led = platform_get_drvdata(pdev);
led_classdev_unregister(&led->cdev); led_classdev_unregister(&led->cdev);
flush_scheduled_work(); flush_work_sync(&led->work);
wm8350_led_disable(led); wm8350_led_disable(led);
regulator_put(led->dcdc); regulator_put(led->dcdc);
regulator_put(led->isink); regulator_put(led->isink);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册