ASoC: rockchip: pdm: fix the missing register sound with 'rockchip,path-map' property

The return value equal 0 should be correct.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Id0ac8012f4e2eeb95a4dbf590f02843cbc3c863f
This commit is contained in:
Xing Zheng
2021-03-17 12:45:46 +08:00
parent c84a4aa411
commit 81b3c14f77

View File

@@ -792,7 +792,7 @@ static int rockchip_pdm_probe(struct platform_device *pdev)
rockchip_pdm_rxctrl(pdm, 0);
ret = rockchip_pdm_path_parse(pdm, node);
if (ret != -ENOENT)
if (ret != 0 && ret != -ENOENT)
goto err_suspend;
if (of_property_read_bool(node, "rockchip,no-dmaengine"))