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: Tejun Heo <tj@kernel.org>
Cc: Mattia Dongili <malattia@linux.it>
This commit is contained in:
Tejun Heo 2010-12-24 15:59:07 +01:00
parent 42565999d1
commit 3514870f06
1 changed files with 1 additions and 1 deletions

View File

@ -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);