[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: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2011-01-10 21:42:12 -02:00
parent 739ff04f63
commit 4ec02ea0d8

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