diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-31 10:37:33 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-31 10:37:33 -0200 |
commit | 2599228213e390de405066ffb1ada35041a11559 (patch) | |
tree | 2c6bbc85416eab42e87c5a890e72cf053d0496ee /linux/drivers/media/video/em28xx/em28xx.h | |
parent | 055a77bbdc33877df3b1a9d9d8aa49230923a450 (diff) | |
download | mediapointer-dvb-s2-2599228213e390de405066ffb1ada35041a11559.tar.gz mediapointer-dvb-s2-2599228213e390de405066ffb1ada35041a11559.tar.bz2 |
em28xx: allocate adev together with struct em28xx dev
From: Mauro Carvalho Chehab <mchehab@redhat.com>
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.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/em28xx/em28xx.h')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx.h b/linux/drivers/media/video/em28xx/em28xx.h index 1b3b75880..06fe92efc 100644 --- a/linux/drivers/media/video/em28xx/em28xx.h +++ b/linux/drivers/media/video/em28xx/em28xx.h @@ -482,7 +482,7 @@ struct em28xx { unsigned long i2c_hash; /* i2c devicelist hash - for boards with generic ID */ - struct em28xx_audio *adev; + struct em28xx_audio adev; /* states */ enum em28xx_dev_state state; |