summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/zoran/zoran_driver.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-01-11 12:02:54 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-29 08:35:37 -0200
commit66aa66ea31371daad562bf22ff245caf707d5d40 (patch)
treee8246e33f329444cacb771979a0994a2ace50307 /drivers/media/video/zoran/zoran_driver.c
parentf90c3c0bdd7a3f16eecf1b077f5e031c44ddb605 (diff)
downloadop-kernel-dev-66aa66ea31371daad562bf22ff245caf707d5d40.zip
op-kernel-dev-66aa66ea31371daad562bf22ff245caf707d5d40.tar.gz
V4L/DVB (10212): Convert to be a pci driver
This is a really old and crufty driver that wasn't using the long established pci driver framework. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Acked-by: Jean Delvare <khali@linux-fr.org> [mchehab@redhat.com: Cleaned up a few CodingStyle issues] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/zoran/zoran_driver.c')
-rw-r--r--drivers/media/video/zoran/zoran_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c
index b58b9dd..5e667fd 100644
--- a/drivers/media/video/zoran/zoran_driver.c
+++ b/drivers/media/video/zoran/zoran_driver.c
@@ -1206,7 +1206,7 @@ zoran_open(struct file *file)
lock_kernel();
/* find the device */
- for (i = 0; i < zoran_num; i++) {
+ for (i = 0; i < atomic_read(&zoran_num); i++) {
if (zoran[i]->video_dev->minor == minor) {
zr = zoran[i];
break;
OpenPOWER on IntegriCloud