diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2009-11-27 11:57:30 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-15 21:17:56 -0500 |
commit | f0813b4c9f7ffbeaddcba1c08a1812f7ff30e1b7 (patch) | |
tree | 6bee13e029a382236f5e54402e054b271350c0fe /drivers/media/video/usbvision/usbvision-video.c | |
parent | 957b4aa9f786cf04585a690a2e4c3dc867ce80e9 (diff) |
V4L/DVB (13553): v4l: Use the video_is_registered function in device drivers
Fix all device drivers to use the video_is_registered function instead
of checking video_device::minor.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
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); |