diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-11-03 10:31:48 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-03 12:17:07 +0000 |
commit | 2a374b78f5c2b5f31d35f8a7cd004989d6936756 (patch) | |
tree | e8883011d325f0090c751a14da2aae1d3e98336e /sound/soc/txx9 | |
parent | dd63a9c2952ed142c64fd68c1a74d0d6fcac586f (diff) | |
download | linux-2a374b78f5c2b5f31d35f8a7cd004989d6936756.tar.bz2 |
ASoC: Remove platform field from snd_soc_dai
Typically a DAI does not need direct access to the platform. Currently the
only user of this field is in a platform driver where we have a more direct
way of getting a pointer to the platform. This patch updates the driver to
use the more direct way and then removes the platform field from the
snd_soc_dai struct.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/txx9')
-rw-r--r-- | sound/soc/txx9/txx9aclc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/txx9/txx9aclc.c b/sound/soc/txx9/txx9aclc.c index cd71fd889d8b..00b7e2d02690 100644 --- a/sound/soc/txx9/txx9aclc.c +++ b/sound/soc/txx9/txx9aclc.c @@ -292,7 +292,7 @@ static int txx9aclc_pcm_new(struct snd_soc_pcm_runtime *rtd) struct snd_card *card = rtd->card->snd_card; struct snd_soc_dai *dai = rtd->cpu_dai; struct snd_pcm *pcm = rtd->pcm; - struct platform_device *pdev = to_platform_device(dai->platform->dev); + struct platform_device *pdev = to_platform_device(rtd->platform->dev); struct txx9aclc_soc_device *dev; struct resource *r; int i; |