diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index 02c8d468b178..a54c8caca291 100644 --- a/sound/soc/rockchip/rockchip_pdm.c +++ b/sound/soc/rockchip/rockchip_pdm.c @@ -26,6 +26,7 @@ #include #include +#include "rockchip_pcm.h" #include "rockchip_pdm.h" #define PDM_DMA_BURST_SIZE (8) /* size * width: 8*4 = 32 bytes */ @@ -798,7 +799,7 @@ static int rockchip_pdm_probe(struct platform_device *pdev) if (of_property_read_bool(node, "rockchip,no-dmaengine")) return 0; - ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0); + ret = rockchip_pcm_platform_register(&pdev->dev); if (ret) { dev_err(&pdev->dev, "could not register pcm: %d\n", ret); goto err_suspend;