[media] technisat-usb2: Don't use a deprecated call
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 10 Jan 2011 23:42:12 +0000 (21:42 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:31:33 +0000 (20:31 -0300)
drivers/media/dvb/dvb-usb/technisat-usb2.c: In function ‘technisat_usb2_disconnect’:
drivers/media/dvb/dvb-usb/technisat-usb2.c:770: warning: ‘cancel_rearming_delayed_work’ is deprecated (declared at include/linux/workqueue.h:421)

Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/technisat-usb2.c

index 406602a..10151aa 100644 (file)
@@ -767,7 +767,7 @@ static void technisat_usb2_disconnect(struct usb_interface *intf)
        if (dev != NULL) {
                struct technisat_usb2_state *state = dev->priv;
                if (state != NULL) {
-                       cancel_rearming_delayed_work(&state->green_led_work);
+                       cancel_delayed_work_sync(&state->green_led_work);
                        flush_scheduled_work();
                }
        }