]> git.karo-electronics.de Git - linux-beck.git/commit
V4L/DVB (10163): em28xx: allocate adev together with struct em28xx dev
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 31 Dec 2008 12:37:33 +0000 (09:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 2 Jan 2009 19:14:55 +0000 (17:14 -0200)
commit9baed99ee7a834b1f2599e13f219087f01c63f38
tree7e2f6b062e82db931d39cb13058895190b27e7d1
parent0b82c5d6748a15758875f78ac772c6d48ebead2a
V4L/DVB (10163): em28xx: allocate adev together with struct em28xx dev

Some devices require different setups on struct_audio. Due to that, we
may need to change some fields at dev.adev during device probe. So, this
patch moves the dynamic memory allocation of adev at em28xx-alsa to the
dynamic allocation of struct em28xx dev that happens during device
probe.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-audio.c
drivers/media/video/em28xx/em28xx.h