diff options
author | Mike Isely <isely@pobox.com> | 2009-03-24 23:30:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:40 -0400 |
commit | dc070bccde5b0ab2f51124bf67e9a3b40a602cba (patch) | |
tree | 9f0d3caa25231c536b0de76ee41aba3c88b67db1 /drivers | |
parent | 2a6b627f8b4594987390ac35d3b344a96af3cfc9 (diff) |
V4L/DVB (11208): pvrusb2: Use v4l2_device_disconnect()
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-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); |