Commit dc070bcc authored by Mike Isely's avatar Mike Isely Committed by Mauro Carvalho Chehab

V4L/DVB (11208): pvrusb2: Use v4l2_device_disconnect()

Signed-off-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2a6b627f
...@@ -2672,10 +2672,7 @@ static void pvr2_hdw_remove_usb_stuff(struct pvr2_hdw *hdw) ...@@ -2672,10 +2672,7 @@ static void pvr2_hdw_remove_usb_stuff(struct pvr2_hdw *hdw)
/* If we don't do this, then there will be a dangling struct device /* If we don't do this, then there will be a dangling struct device
reference to our disappearing device persisting inside the V4L reference to our disappearing device persisting inside the V4L
core... */ core... */
if (hdw->v4l2_dev.dev) { v4l2_device_disconnect(&hdw->v4l2_dev);
dev_set_drvdata(hdw->v4l2_dev.dev, NULL);
hdw->v4l2_dev.dev = NULL;
}
hdw->usb_dev = NULL; hdw->usb_dev = NULL;
hdw->usb_intf = NULL; hdw->usb_intf = NULL;
pvr2_hdw_render_useless(hdw); pvr2_hdw_render_useless(hdw);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment