提交 f1ba28c3 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

V4L/DVB (11045): v4l2: call v4l2_device_disconnect in USB drivers.

Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 ae6cfaac
......@@ -1771,6 +1771,8 @@ static void __devexit usbvision_disconnect(struct usb_interface *intf)
// At this time we ask to cancel outstanding URBs
usbvision_stop_isoc(usbvision);
v4l2_device_disconnect(&usbvision->v4l2_dev);
if (usbvision->power) {
usbvision_i2c_unregister(usbvision);
usbvision_power_off(usbvision);
......
......@@ -3557,7 +3557,9 @@ static void w9968cf_usb_disconnect(struct usb_interface* intf)
cam->disconnected = 1;
DBG(2, "Disconnecting %s...", symbolic(camlist, cam->id))
DBG(2, "Disconnecting %s...", symbolic(camlist, cam->id));
v4l2_device_disconnect(&cam->v4l2_dev);
wake_up_interruptible_all(&cam->open);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册