ASoC: DaVinci: fix kernel panic due to uninitialized platform_data
authorManjunathappa, Prakash <prakash.pm@ti.com>
Thu, 27 Jan 2011 13:47:43 +0000 (19:17 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 28 Jan 2011 12:24:50 +0000 (12:24 +0000)
commit0fa63b69284c9bbedf876c677a9e650243cc40be
tree35b0ff9fc1a098d373dfc0a3eea932c5c57fad85
parentc73e0c83f512012e7c357e516a0d7c0a832bfa34
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>
sound/soc/codecs/cq93vc.c