summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards/haswell.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-01-29 02:42:21 +0000
committerMark Brown <broonie@kernel.org>2018-02-12 11:45:11 +0000
commit2ee178dbeb3974676b23751d602f79cc276f46e4 (patch)
tree3983d9a7395f65ad746cd8db0be5cbf646dfda39 /sound/soc/intel/boards/haswell.c
parent81dc5f3d806ad50283b4b58abebd08ef65817f87 (diff)
downloadlinux-2ee178dbeb3974676b23751d602f79cc276f46e4.tar.bz2
ASoC: intel: haswell: replace platform to component
Now platform can be replaced to component, let's do it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/haswell.c')
-rw-r--r--sound/soc/intel/boards/haswell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/haswell.c b/sound/soc/intel/boards/haswell.c
index 3c5160779204..eab1f439dd3f 100644
--- a/sound/soc/intel/boards/haswell.c
+++ b/sound/soc/intel/boards/haswell.c
@@ -87,7 +87,8 @@ static const struct snd_soc_ops haswell_rt5640_ops = {
static int haswell_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 *haswell = pdata->dsp;
int ret;