diff options
Diffstat (limited to 'drivers/media/video/usbvision/usbvision-video.c')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c index 639c3396ae77..e89b855fd282 100644 --- a/drivers/media/video/usbvision/usbvision-video.c +++ b/drivers/media/video/usbvision/usbvision-video.c | |||
@@ -1418,7 +1418,7 @@ static void usbvision_unregister_video(struct usb_usbvision *usbvision) | |||
1418 | if (usbvision->vbi) { | 1418 | if (usbvision->vbi) { |
1419 | PDEBUG(DBG_PROBE, "unregister %s [v4l2]", | 1419 | PDEBUG(DBG_PROBE, "unregister %s [v4l2]", |
1420 | video_device_node_name(usbvision->vbi)); | 1420 | video_device_node_name(usbvision->vbi)); |
1421 | if (usbvision->vbi->minor != -1) { | 1421 | if (video_is_registered(usbvision->vbi)) { |
1422 | video_unregister_device(usbvision->vbi); | 1422 | video_unregister_device(usbvision->vbi); |
1423 | } else { | 1423 | } else { |
1424 | video_device_release(usbvision->vbi); | 1424 | video_device_release(usbvision->vbi); |
@@ -1430,7 +1430,7 @@ static void usbvision_unregister_video(struct usb_usbvision *usbvision) | |||
1430 | if (usbvision->rdev) { | 1430 | if (usbvision->rdev) { |
1431 | PDEBUG(DBG_PROBE, "unregister %s [v4l2]", | 1431 | PDEBUG(DBG_PROBE, "unregister %s [v4l2]", |
1432 | video_device_node_name(usbvision->rdev)); | 1432 | video_device_node_name(usbvision->rdev)); |
1433 | if (usbvision->rdev->minor != -1) { | 1433 | if (video_is_registered(usbvision->rdev)) { |
1434 | video_unregister_device(usbvision->rdev); | 1434 | video_unregister_device(usbvision->rdev); |
1435 | } else { | 1435 | } else { |
1436 | video_device_release(usbvision->rdev); | 1436 | video_device_release(usbvision->rdev); |
@@ -1442,7 +1442,7 @@ static void usbvision_unregister_video(struct usb_usbvision *usbvision) | |||
1442 | if (usbvision->vdev) { | 1442 | if (usbvision->vdev) { |
1443 | PDEBUG(DBG_PROBE, "unregister %s [v4l2]", | 1443 | PDEBUG(DBG_PROBE, "unregister %s [v4l2]", |
1444 | video_device_node_name(usbvision->vdev)); | 1444 | video_device_node_name(usbvision->vdev)); |
1445 | if (usbvision->vdev->minor != -1) { | 1445 | if (video_is_registered(usbvision->vdev)) { |
1446 | video_unregister_device(usbvision->vdev); | 1446 | video_unregister_device(usbvision->vdev); |
1447 | } else { | 1447 | } else { |
1448 | video_device_release(usbvision->vdev); | 1448 | video_device_release(usbvision->vdev); |