diff options
author | Tejun Heo <tj@kernel.org> | 2011-06-15 09:32:06 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:53:08 -0400 |
commit | fe45e2551f565c87559434205963fc56bbe205fa (patch) | |
tree | 4b606a73317e09d896da521ec4f2f7db54ca01fc /drivers/media/dvb/dvb-usb/technisat-usb2.c | |
parent | 3e1a4c1ff90002762998e0d13c8edc2e7aa8d736 (diff) |
[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>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/technisat-usb2.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/technisat-usb2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/technisat-usb2.c b/drivers/media/dvb/dvb-usb/technisat-usb2.c index 08f8842ad28..473b95ed4d5 100644 --- a/drivers/media/dvb/dvb-usb/technisat-usb2.c +++ b/drivers/media/dvb/dvb-usb/technisat-usb2.c | |||
@@ -765,10 +765,8 @@ static void technisat_usb2_disconnect(struct usb_interface *intf) | |||
765 | /* work and stuff was only created when the device is is hot-state */ | 765 | /* work and stuff was only created when the device is is hot-state */ |
766 | if (dev != NULL) { | 766 | if (dev != NULL) { |
767 | struct technisat_usb2_state *state = dev->priv; | 767 | struct technisat_usb2_state *state = dev->priv; |
768 | if (state != NULL) { | 768 | if (state != NULL) |
769 | cancel_delayed_work_sync(&state->green_led_work); | 769 | cancel_delayed_work_sync(&state->green_led_work); |
770 | flush_scheduled_work(); | ||
771 | } | ||
772 | } | 770 | } |
773 | 771 | ||
774 | dvb_usb_device_exit(intf); | 772 | dvb_usb_device_exit(intf); |