summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorManjunathappa, Prakash <prakash.pm@ti.com>2011-01-27 19:17:43 +0530
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-01-28 12:24:50 +0000
commit0fa63b69284c9bbedf876c677a9e650243cc40be (patch)
tree35b0ff9fc1a098d373dfc0a3eea932c5c57fad85 /sound
parentc73e0c83f512012e7c357e516a0d7c0a832bfa34 (diff)
ASoC: DaVinci: fix kernel panic due to uninitialized platform_data
This patch fixes the Kernel panic issue on accessing davinci_vc in cq93vc_probe function. struct davinci_vc is part of platform device's private driver data(codec->dev->p->driver_data) and this is populated by DaVinci Voice Codec MFD driver. Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/cq93vc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c
index 46dbfd067f79..347a567b01e1 100644
--- a/sound/soc/codecs/cq93vc.c
+++ b/sound/soc/codecs/cq93vc.c
@@ -153,7 +153,7 @@ static int cq93vc_resume(struct snd_soc_codec *codec)
static int cq93vc_probe(struct snd_soc_codec *codec)
{
- struct davinci_vc *davinci_vc = codec->dev->platform_data;
+ struct davinci_vc *davinci_vc = snd_soc_codec_get_drvdata(codec);
davinci_vc->cq93vc.codec = codec;
codec->control_data = davinci_vc;