ASoC: sirf-audio-codec: Replace direct snd_soc_codec dapm field access
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 11 May 2015 07:42:36 +0000 (09:42 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 11 May 2015 16:33:32 +0000 (17:33 +0100)
The dapm field of the snd_soc_codec struct is eventually going to be
removed, in preparation for this replace all manual access to
codec->dapm with snd_soc_codec_get_dapm().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sirf-audio-codec.c

index 0a8e43c98a0706764664822f2c364de1ae34a6c4..29cb44256044c7557c6d202b503a925bc15e5d4a 100644 (file)
@@ -395,7 +395,7 @@ struct snd_soc_dai_driver sirf_audio_codec_dai = {
 
 static int sirf_audio_codec_probe(struct snd_soc_codec *codec)
 {
-       struct snd_soc_dapm_context *dapm = &codec->dapm;
+       struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
 
        pm_runtime_enable(codec->dev);