Commit 3514870f authored by Tejun Heo's avatar Tejun Heo

sonypi: don't use flush_scheduled_work()

flush_scheduled_work() is deprecated and scheduled to be removed.
Directly flush sonypi_device.input_work on removal instead.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: Mattia Dongili <malattia@linux.it>
parent 42565999
...@@ -1434,7 +1434,7 @@ static int __devexit sonypi_remove(struct platform_device *dev) ...@@ -1434,7 +1434,7 @@ static int __devexit sonypi_remove(struct platform_device *dev)
sonypi_disable(); sonypi_disable();
synchronize_irq(sonypi_device.irq); synchronize_irq(sonypi_device.irq);
flush_scheduled_work(); flush_work_sync(&sonypi_device.input_work);
if (useinput) { if (useinput) {
input_unregister_device(sonypi_device.input_key_dev); input_unregister_device(sonypi_device.input_key_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment