Skip to content

Commit

Permalink
[media] technisat-usb2: Don't use a deprecated call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 739ff04 commit 4ec02ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/technisat-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 4ec02ea

Please sign in to comment.