|
@@ -153,7 +153,7 @@ static int cq93vc_resume(struct snd_soc_codec *codec)
|
|
|
|
|
|
static int cq93vc_probe(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;
|
|
davinci_vc->cq93vc.codec = codec;
|
|
codec->control_data = davinci_vc;
|
|
codec->control_data = davinci_vc;
|