summaryrefslogtreecommitdiff
path: root/sound/soc/mediatek
diff options
context:
space:
mode:
authorKai Chieh Chuang <kaichieh.chuang@mediatek.com>2018-04-28 13:21:26 +0800
committerMark Brown <broonie@kernel.org>2018-05-02 05:52:14 +0900
commit9a67d11e34cc21afe2cbddaa8f50d2a5da098d6e (patch)
treede0a91a18213f6209d9bc9e12ac88f1e2b543ef9 /sound/soc/mediatek
parente969a6d222c9da87c6b5978674788faf5c58a07d (diff)
downloadlwn-9a67d11e34cc21afe2cbddaa8f50d2a5da098d6e.tar.gz
lwn-9a67d11e34cc21afe2cbddaa8f50d2a5da098d6e.zip
ASoC: mediatek: avoid using snd_soc_platform
avoid using snd_soc_platform, which is removed after 4.18 Signed-off-by: KaiChieh Chuang <kaichieh.chuang@mediatek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek')
-rw-r--r--sound/soc/mediatek/common/mtk-afe-platform-driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/mediatek/common/mtk-afe-platform-driver.c b/sound/soc/mediatek/common/mtk-afe-platform-driver.c
index d046ea8e543b..8966ee138387 100644
--- a/sound/soc/mediatek/common/mtk-afe-platform-driver.c
+++ b/sound/soc/mediatek/common/mtk-afe-platform-driver.c
@@ -62,7 +62,7 @@ static int mtk_afe_pcm_new(struct snd_soc_pcm_runtime *rtd)
size = afe->mtk_afe_hardware->buffer_bytes_max;
return snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
- rtd->platform->dev,
+ afe->dev,
size, size);
}