Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

Tejun Heo 3514870f 42565999

+1 -1
+1 -1
drivers/char/sonypi.c
··· 1434 1434 sonypi_disable(); 1435 1435 1436 1436 synchronize_irq(sonypi_device.irq); 1437 - flush_scheduled_work(); 1437 + flush_work_sync(&sonypi_device.input_work); 1438 1438 1439 1439 if (useinput) { 1440 1440 input_unregister_device(sonypi_device.input_key_dev);