Skip to content

Commit

Permalink
ASoC: DaVinci: fix kernel panic due to uninitialized platform_data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manjunathappa, Prakash authored and Mark Brown committed Jan 28, 2011
1 parent c73e0c8 commit 0fa63b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/cq93vc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0fa63b6

Please sign in to comment.