diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-05-19 11:41:46 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-20 22:54:54 +0100 |
commit | 0596f70069bb5ab34eea980c14fad1041f2abae5 (patch) | |
tree | 66f75e16ed4bb434d1c059dba58795fed4a2feb2 /sound/soc/omap/rx51.c | |
parent | b7a80379aa52d033d2a7c2390c8e80bd027758bf (diff) |
ASoC: omap: Replace instances of rtd->codec->card with rtd->card
No need to go via the CODEC to get a pointer to the card. This will help to
eventually remove the card field from the snd_soc_codec struct.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/omap/rx51.c')
-rw-r--r-- | sound/soc/omap/rx51.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 866578bcda55..6951dc812055 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c @@ -286,7 +286,7 @@ static const struct snd_kcontrol_new aic34_rx51_controls[] = { static int rx51_aic34_init(struct snd_soc_pcm_runtime *rtd) { struct snd_soc_codec *codec = rtd->codec; - struct snd_soc_card *card = codec->card; + struct snd_soc_card *card = rtd->card; struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); struct snd_soc_dapm_context *dapm = &codec->dapm; |