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/cx23885/cx23885-417.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/cx23885/cx23885-417.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-417.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885-417.c b/drivers/media/video/cx23885/cx23885-417.c index 8084e13dd103..a7bfe7c3a447 100644 --- a/drivers/media/video/cx23885/cx23885-417.c +++ b/drivers/media/video/cx23885/cx23885-417.c | |||
@@ -1746,7 +1746,7 @@ void cx23885_417_unregister(struct cx23885_dev *dev) | |||
1746 | dprintk(1, "%s()\n", __func__); | 1746 | dprintk(1, "%s()\n", __func__); |
1747 | 1747 | ||
1748 | if (dev->v4l_device) { | 1748 | if (dev->v4l_device) { |
1749 | if (-1 != dev->v4l_device->minor) | 1749 | if (video_is_registered(dev->v4l_device)) |
1750 | video_unregister_device(dev->v4l_device); | 1750 | video_unregister_device(dev->v4l_device); |
1751 | else | 1751 | else |
1752 | video_device_release(dev->v4l_device); | 1752 | video_device_release(dev->v4l_device); |