projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4256599
)
sonypi: don't use flush_scheduled_work()
author
Tejun Heo
<tj@kernel.org>
Fri, 24 Dec 2010 14:59:07 +0000
(15:59 +0100)
committer
Tejun Heo
<tj@kernel.org>
Fri, 24 Dec 2010 14:59:07 +0000
(15:59 +0100)
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>
drivers/char/sonypi.c
patch
|
blob
|
history
diff --git
a/drivers/char/sonypi.c
b/drivers/char/sonypi.c
index 73f66d03624dfd2b1e51a0aab8c236fc6ec4c7d6..79e36c878a4c181d2edc5e8f3e9b6b00b8fb4253 100644
(file)
--- a/
drivers/char/sonypi.c
+++ b/
drivers/char/sonypi.c
@@
-1434,7
+1434,7
@@
static int __devexit sonypi_remove(struct platform_device *dev)
sonypi_disable();
synchronize_irq(sonypi_device.irq);
- flush_
scheduled_work(
);
+ flush_
work_sync(&sonypi_device.input_work
);
if (useinput) {
input_unregister_device(sonypi_device.input_key_dev);