summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/zoran/zoran_card.h
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-01-12 13:09:46 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-29 08:35:38 -0200
commit601139e08339b15997c6ae638dc5bf42c51ea204 (patch)
tree42e8e2b998b3f020ed7049ec9bc03f3439e79c0a /drivers/media/video/zoran/zoran_card.h
parent45bdcefea25cad2d7443f5b45a5319e2bd201048 (diff)
downloadop-kernel-dev-601139e08339b15997c6ae638dc5bf42c51ea204.zip
op-kernel-dev-601139e08339b15997c6ae638dc5bf42c51ea204.tar.gz
V4L/DVB (10223): zoran: Remove global device array
The driver was keeping a global array with an entry for each zoran device probed. It was a leftover from when the driver didn't dynamically allocate the driver data for each device. There was only one use left, in the video device's ->open() method, looking up the struct zoran for the opened device from the minor number. This can be done better with video_get_drvdata(). Since zoran_num is now only used in the pci driver's ->probe() method, it doesn't need to be an atomic_t and be static. There is a race if multiple zoran cards could be probed at the same time, but currently the probe method for a given driver is single threaded. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/zoran/zoran_card.h')
-rw-r--r--drivers/media/video/zoran/zoran_card.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/zoran/zoran_card.h b/drivers/media/video/zoran/zoran_card.h
index c989448..4507bdc 100644
--- a/drivers/media/video/zoran/zoran_card.h
+++ b/drivers/media/video/zoran/zoran_card.h
@@ -40,8 +40,6 @@ extern int zr36067_debug;
/* Anybody who uses more than four? */
#define BUZ_MAX 4
-extern atomic_t zoran_num;
-extern struct zoran *zoran[BUZ_MAX];
extern struct video_device zoran_template;
OpenPOWER on IntegriCloud