linux/drivers/media
Jean Delvare 85b9b8a444 V4L/DVB (8499): zr36067: Rework device memory allocation
Allocate zoran devices dynamically. Currently, the zr36067 driver
stores the device structures in a global array, with room for 4
devices. This makes the bss section very large (90 kB!), and given
that most users, I suspect, have only one zoran device, this is a
waste of kernel memory. Allocating the memory dynamically lets us use
only the amount of memory we need.

Before:
   text    data     bss     dec     hex filename
  64754    9230   90224  164208   28170 drivers/media/video/zr36067.o

After:
   text    data     bss     dec     hex filename
  64866    9230     112   74208   121e0 drivers/media/video/zr36067.o

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Ronald Bultje <rbultje@ronald.bitfreak.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-07-26 13:18:27 -03:00
..
common V4L/DVB (8493): mt20xx: test below 0 on unsigned lo1a and lo2a 2008-07-26 13:18:19 -03:00
dvb V4L/DVB (8495): usb/anysee.c: make struct anysee_usb_mutex static 2008-07-26 13:18:21 -03:00
radio V4L/DVB (8483): Remove obsolete owner field from video_device struct. 2008-07-26 12:55:07 -03:00
video V4L/DVB (8499): zr36067: Rework device memory allocation 2008-07-26 13:18:27 -03:00
Kconfig V4L/DVB (8392): media/Kconfig: Convert V4L1_COMPAT select into "depends on" 2008-07-20 07:28:49 -03:00
Makefile V4L/DVB (8274): sms1xxx: build cleanup after driver relocation 2008-07-20 07:20:56 -03:00