diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index e35772125038..7a65b42a4f53 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -2672,10 +2672,7 @@ static void pvr2_hdw_remove_usb_stuff(struct pvr2_hdw *hdw) | |||
2672 | /* If we don't do this, then there will be a dangling struct device | 2672 | /* If we don't do this, then there will be a dangling struct device |
2673 | reference to our disappearing device persisting inside the V4L | 2673 | reference to our disappearing device persisting inside the V4L |
2674 | core... */ | 2674 | core... */ |
2675 | if (hdw->v4l2_dev.dev) { | 2675 | v4l2_device_disconnect(&hdw->v4l2_dev); |
2676 | dev_set_drvdata(hdw->v4l2_dev.dev, NULL); | ||
2677 | hdw->v4l2_dev.dev = NULL; | ||
2678 | } | ||
2679 | hdw->usb_dev = NULL; | 2676 | hdw->usb_dev = NULL; |
2680 | hdw->usb_intf = NULL; | 2677 | hdw->usb_intf = NULL; |
2681 | pvr2_hdw_render_useless(hdw); | 2678 | pvr2_hdw_render_useless(hdw); |