aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-05-19 05:41:48 -0400
committerMark Brown <broonie@linaro.org>2014-05-20 17:55:39 -0400
commit55bc82536960e4749df7ae5666a93702190c53d4 (patch)
treef1409847eed41a856ac3f7f8218b2b5efbbb1010
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff)
ASoC: mop500_ab8500: 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> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/ux500/mop500_ab8500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/ux500/mop500_ab8500.c b/sound/soc/ux500/mop500_ab8500.c
index 7e923ecf8901..be4f1ac7cd5e 100644
--- a/sound/soc/ux500/mop500_ab8500.c
+++ b/sound/soc/ux500/mop500_ab8500.c
@@ -411,7 +411,7 @@ int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd)
411 drvdata->mclk_sel = MCLK_ULPCLK; 411 drvdata->mclk_sel = MCLK_ULPCLK;
412 412
413 /* Add controls */ 413 /* Add controls */
414 ret = snd_soc_add_card_controls(codec->card, mop500_ab8500_ctrls, 414 ret = snd_soc_add_card_controls(rtd->card, mop500_ab8500_ctrls,
415 ARRAY_SIZE(mop500_ab8500_ctrls)); 415 ARRAY_SIZE(mop500_ab8500_ctrls));
416 if (ret < 0) { 416 if (ret < 0) {
417 pr_err("%s: Failed to add machine-controls (%d)!\n", 417 pr_err("%s: Failed to add machine-controls (%d)!\n",