diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2009-11-27 16:57:30 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 02:17:56 (GMT) |
commit | f0813b4c9f7ffbeaddcba1c08a1812f7ff30e1b7 (patch) | |
tree | 6bee13e029a382236f5e54402e054b271350c0fe /drivers/media/video/stradis.c | |
parent | 957b4aa9f786cf04585a690a2e4c3dc867ce80e9 (diff) | |
download | linux-fsl-qoriq-f0813b4c9f7ffbeaddcba1c08a1812f7ff30e1b7.tar.xz |
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/stradis.c')
-rw-r--r-- | drivers/media/video/stradis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/stradis.c b/drivers/media/video/stradis.c index eaada39..c890905 100644 --- a/drivers/media/video/stradis.c +++ b/drivers/media/video/stradis.c @@ -2134,7 +2134,7 @@ static void stradis_release_saa(struct pci_dev *pdev) free_irq(saa->irq, saa); if (saa->saa7146_mem) iounmap(saa->saa7146_mem); - if (saa->video_dev.minor != -1) + if (video_is_registered(&saa->video_dev)) video_unregister_device(&saa->video_dev); } |