aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards/broadwell.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2018-03-01 19:55:59 +0000
committerMark Brown <broonie@kernel.org>2018-03-01 19:55:59 +0000
commita1f362d806b29669725c4c29b591b0a1bf9081cb (patch)
treea518245fe1af7a199a799e3be885fff85258e267 /sound/soc/intel/boards/broadwell.c
parentASoC: Intel: Skylake: Find module id from UUID for bind params (diff)
parentASoC: soc-utils: replace codec to component (diff)
downloadlinux-dev-a1f362d806b29669725c4c29b591b0a1bf9081cb.tar.xz
linux-dev-a1f362d806b29669725c4c29b591b0a1bf9081cb.zip
Merge branch 'topic/component-platform' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-intel
Diffstat (limited to 'sound/soc/intel/boards/broadwell.c')
-rw-r--r--sound/soc/intel/boards/broadwell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/broadwell.c b/sound/soc/intel/boards/broadwell.c
index 370cd916faba..7b0ee67b4fc8 100644
--- a/sound/soc/intel/boards/broadwell.c
+++ b/sound/soc/intel/boards/broadwell.c
@@ -132,7 +132,8 @@ static const struct snd_soc_ops broadwell_rt286_ops = {
static int broadwell_rtd_init(struct snd_soc_pcm_runtime *rtd)
{
- struct sst_pdata *pdata = dev_get_platdata(rtd->platform->dev);
+ struct snd_soc_component *component = snd_soc_rtdcom_lookup(rtd, DRV_NAME);
+ struct sst_pdata *pdata = dev_get_platdata(component->dev);
struct sst_hsw *broadwell = pdata->dsp;
int ret;