mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 19:01:37 +00:00
[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:
parent
739ff04f63
commit
4ec02ea0d8
@ -767,7 +767,7 @@ static void technisat_usb2_disconnect(struct usb_interface *intf)
|
|||||||
if (dev != NULL) {
|
if (dev != NULL) {
|
||||||
struct technisat_usb2_state *state = dev->priv;
|
struct technisat_usb2_state *state = dev->priv;
|
||||||
if (state != NULL) {
|
if (state != NULL) {
|
||||||
cancel_rearming_delayed_work(&state->green_led_work);
|
cancel_delayed_work_sync(&state->green_led_work);
|
||||||
flush_scheduled_work();
|
flush_scheduled_work();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user