ASoC: mediatek: avoid using snd_soc_platform
authorKai Chieh Chuang <kaichieh.chuang@mediatek.com>
Sat, 28 Apr 2018 05:21:26 +0000 (13:21 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 1 May 2018 20:52:14 +0000 (05:52 +0900)
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>
sound/soc/mediatek/common/mtk-afe-platform-driver.c

index d046ea8..8966ee1 100644 (file)
@@ -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);
 }