Browse Source

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>
Tejun Heo 14 years ago
parent
commit
c4ffafa51b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/hid/hid-picolcd.c

+ 1 - 1
drivers/hid/hid-picolcd.c

@@ -2750,7 +2750,7 @@ static void __exit picolcd_exit(void)
 {
 {
 	hid_unregister_driver(&picolcd_driver);
 	hid_unregister_driver(&picolcd_driver);
 #ifdef CONFIG_HID_PICOLCD_FB
 #ifdef CONFIG_HID_PICOLCD_FB
-	flush_scheduled_work();
+	flush_work_sync(&picolcd_fb_cleanup);
 	WARN_ON(fb_pending);
 	WARN_ON(fb_pending);
 #endif
 #endif
 }
 }