Re: [Mjpeg-users] [PATCH] zr36067: Rework device memory allocation

2008-07-14 Thread Jean Delvare
On Mon, 14 Jul 2008 07:02:15 -0400, Ronald S. Bultje wrote: > Hi, > > On Mon, Jul 14, 2008 at 3:18 AM, Jean Delvare <[EMAIL PROTECTED]> wrote: > > Allocate zoran devices dynamically. Currently, the zr36067 driver > > stores the device structures in a global array, with room for 4 > > devices. This

Re: [Mjpeg-users] [PATCH] zr36067: Rework device memory allocation

2008-07-14 Thread Ronald S. Bultje
Hi, On Mon, Jul 14, 2008 at 3:18 AM, Jean Delvare <[EMAIL PROTECTED]> wrote: > 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,

[Mjpeg-users] [PATCH] zr36067: Rework device memory allocation

2008-07-14 Thread Jean Delvare
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 t