Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
[media] dvb-usb/technisat-usb2: don't use flush_scheduled_work()
Browse files Browse the repository at this point in the history
flush_scheduled_work() is deprecated and scheduled to be removed.
technisat-usb2 already sync-cancels the only work item it uses and
there's no reason for it to call flush_scheduled_work().  Don't use
it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
htejun authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 3e1a4c1 commit fe45e25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/media/dvb/dvb-usb/technisat-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,10 +765,8 @@ static void technisat_usb2_disconnect(struct usb_interface *intf)
/* work and stuff was only created when the device is is hot-state */
if (dev != NULL) {
struct technisat_usb2_state *state = dev->priv;
if (state != NULL) {
if (state != NULL)
cancel_delayed_work_sync(&state->green_led_work);
flush_scheduled_work();
}
}

dvb_usb_device_exit(intf);
Expand Down

0 comments on commit fe45e25

Please sign in to comment.