Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4ffafa5 authored by Tejun Heo's avatar Tejun Heo Committed by Jiri Kosina
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 2ade0c1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2750,7 +2750,7 @@ static void __exit picolcd_exit(void)
{
	hid_unregister_driver(&picolcd_driver);
#ifdef CONFIG_HID_PICOLCD_FB
	flush_scheduled_work();
	flush_work_sync(&picolcd_fb_cleanup);
	WARN_ON(fb_pending);
#endif
}