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

[media] dvb-usb/technisat-usb2: don't use flush_scheduled_work()

flush_scheduled_work() is deprecated and scheduled to be removed.
technisat-usb2 already sync-cancels the only work item it uses and
there's no reason for it to call flush_scheduled_work(). Don't use
it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Tejun Heo and committed by
Mauro Carvalho Chehab
fe45e255 3e1a4c1f

+1 -3
+1 -3
drivers/media/dvb/dvb-usb/technisat-usb2.c
··· 765 765 /* work and stuff was only created when the device is is hot-state */ 766 766 if (dev != NULL) { 767 767 struct technisat_usb2_state *state = dev->priv; 768 - if (state != NULL) { 768 + if (state != NULL) 769 769 cancel_delayed_work_sync(&state->green_led_work); 770 - flush_scheduled_work(); 771 - } 772 770 } 773 771 774 772 dvb_usb_device_exit(intf);