diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-31 13:37:33 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-02 20:14:55 +0100 |
commit | 9baed99ee7a834b1f2599e13f219087f01c63f38 (patch) | |
tree | 7e2f6b062e82db931d39cb13058895190b27e7d1 /drivers/media/video/em28xx/em28xx.h | |
parent | V4L/DVB (10162): tuner-simple: Fix tuner type set message (diff) | |
download | linux-9baed99ee7a834b1f2599e13f219087f01c63f38.tar.xz linux-9baed99ee7a834b1f2599e13f219087f01c63f38.zip |
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>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index afc5f6d17e0f..6c6b94aa05b2 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h @@ -473,7 +473,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; |