summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ac97.c
diff options
context:
space:
mode:
authorLars-Peter Clausen2014-07-17 22:01:07 +0200
committerMark Brown2014-07-23 00:15:57 +0200
commit00200107a296cad3a950049a5ad7134a0d962b8d (patch)
tree73ccc523f1a46f0f8b7deab226a1df0cf6d057ed /sound/soc/codecs/ac97.c
parentASoC: tegra: Replace instances of rtd->codec->card with rtd->card (diff)
downloadkernel-qcow2-linux-00200107a296cad3a950049a5ad7134a0d962b8d.tar.gz
kernel-qcow2-linux-00200107a296cad3a950049a5ad7134a0d962b8d.tar.xz
kernel-qcow2-linux-00200107a296cad3a950049a5ad7134a0d962b8d.zip
ASoC: Move card field form platform/codec to component
Both the snd_soc_codec and snd_soc_platform struct do have a pointer to the parent card and both handle this pointer in mostly the same way. This patch moves the card field to the component level which will allow further code consolidation between platforms and CODECS. Since there are only a handful of users of the snd_soc_codec struct's card field (and none of the snd_soc_platform's) these are update in this patch as well, which allows it to be removed from the snd_soc_codec struct. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/ac97.c')
-rw-r--r--sound/soc/codecs/ac97.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c
index 8d9ba4ba4bfe..e889e1b84192 100644
--- a/sound/soc/codecs/ac97.c
+++ b/sound/soc/codecs/ac97.c
@@ -89,8 +89,8 @@ static int ac97_soc_probe(struct snd_soc_codec *codec)
int ret;
/* add codec as bus device for standard ac97 */
- ret = snd_ac97_bus(codec->card->snd_card, 0, soc_ac97_ops, NULL,
- &ac97_bus);
+ ret = snd_ac97_bus(codec->component.card->snd_card, 0, soc_ac97_ops,
+ NULL, &ac97_bus);
if (ret < 0)
return ret;