[media] dvb-usb/technisat-usb2: don't use flush_scheduled_work()
authorTejun Heo <tj@kernel.org>
Wed, 15 Jun 2011 13:32:06 +0000 (10:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:08 +0000 (17:53 -0300)
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>
drivers/media/dvb/dvb-usb/technisat-usb2.c

index 08f8842ad280861c7f6acb6c756939147f9d5879..473b95ed4d52759339b7b9f4b0c20541b76a569c 100644 (file)
@@ -765,10 +765,8 @@ static void technisat_usb2_disconnect(struct usb_interface *intf)
        /* work and stuff was only created when the device is is hot-state */
        if (dev != NULL) {
                struct technisat_usb2_state *state = dev->priv;
-               if (state != NULL) {
+               if (state != NULL)
                        cancel_delayed_work_sync(&state->green_led_work);
-                       flush_scheduled_work();
-               }
        }
 
        dvb_usb_device_exit(intf);