ASoC: mc13783: Provide codec->control_data
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 26 Jul 2012 18:29:03 +0000 (15:29 -0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 26 Jul 2012 20:35:19 +0000 (21:35 +0100)
commite13ab2aac7a273a890d18bb482849610be178bc5
tree22afc88cbc36d48c8cebdf3506b93dad3d77a5ff
parentaa50fe55ace7451e6ad6812915db367c8cfd3bb3
ASoC: mc13783: Provide codec->control_data

If codec->control_data is not provided, the following crash happens:

Unable to handle kernel NULL pointer dereference at virtual address 00000078
pgd = 80004000
[00000078] *pgd=00000000
Internal error: Oops: 5 [#1] SMP ARM
Modules linked in:
CPU: 0    Tainted: G        W     (3.5.0-next-20120725+ #1263)
PC is at regmap_read+0x18/0x64
LR is at hw_read+0x50/0x98
pc : [<802bcd90>]    lr : [<803cad18>]    psr: 60000013
...

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/mc13783.c