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>
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();
}
}