Commit 4ec02ea0 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] technisat-usb2: Don't use a deprecated call

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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 739ff04f
......@@ -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();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment