diff options
Diffstat (limited to 'drivers/media/radio/radio-si470x.c')
-rw-r--r-- | drivers/media/radio/radio-si470x.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/radio/radio-si470x.c b/drivers/media/radio/radio-si470x.c index a2975c8b0095..7fdee3cc6e02 100644 --- a/drivers/media/radio/radio-si470x.c +++ b/drivers/media/radio/radio-si470x.c | |||
@@ -1439,11 +1439,10 @@ static void si470x_usb_driver_disconnect(struct usb_interface *intf) | |||
1439 | { | 1439 | { |
1440 | struct si470x_device *radio = usb_get_intfdata(intf); | 1440 | struct si470x_device *radio = usb_get_intfdata(intf); |
1441 | 1441 | ||
1442 | del_timer_sync(&radio->timer); | ||
1443 | flush_scheduled_work(); | ||
1444 | |||
1445 | usb_set_intfdata(intf, NULL); | 1442 | usb_set_intfdata(intf, NULL); |
1446 | if (radio) { | 1443 | if (radio) { |
1444 | del_timer_sync(&radio->timer); | ||
1445 | flush_scheduled_work(); | ||
1447 | video_unregister_device(radio->videodev); | 1446 | video_unregister_device(radio->videodev); |
1448 | kfree(radio->buffer); | 1447 | kfree(radio->buffer); |
1449 | kfree(radio); | 1448 | kfree(radio); |