diff options
author | Tejun Heo <tj@kernel.org> | 2010-12-11 11:51:36 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-12-11 12:38:20 -0500 |
commit | c4ffafa51bb0bea648a4ca119033a95057799c9d (patch) | |
tree | 96b7c6f53672a9c1c802974934df20a6719cb5b3 /drivers/hid | |
parent | 2ade0c1d9d93b7642212657ef76f4a1e30233711 (diff) |
HID: hid-picolcd: don't use flush_scheduled_work()
flush_scheduled_work() is deprecated and scheduled to be removed.
Directly flush picolcd_fb_cleanup on exit instead.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-picolcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-picolcd.c b/drivers/hid/hid-picolcd.c index e4ce47156106..ed0e066b7f07 100644 --- a/drivers/hid/hid-picolcd.c +++ b/drivers/hid/hid-picolcd.c | |||
@@ -2750,7 +2750,7 @@ static void __exit picolcd_exit(void) | |||
2750 | { | 2750 | { |
2751 | hid_unregister_driver(&picolcd_driver); | 2751 | hid_unregister_driver(&picolcd_driver); |
2752 | #ifdef CONFIG_HID_PICOLCD_FB | 2752 | #ifdef CONFIG_HID_PICOLCD_FB |
2753 | flush_scheduled_work(); | 2753 | flush_work_sync(&picolcd_fb_cleanup); |
2754 | WARN_ON(fb_pending); | 2754 | WARN_ON(fb_pending); |
2755 | #endif | 2755 | #endif |
2756 | } | 2756 | } |