Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: rsnd: dma.c: tidyup rsnd_dma_probe()

This patch tidyups rsnd_dma_probe(), but there is no effect.

This is prepare for Gen4 support.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87r0va5elq.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
beab0aad c20bc7c9

+7 -2
+7 -2
sound/soc/sh/rcar/dma.c
··· 885 885 /* 886 886 * for Gen2 or later 887 887 */ 888 - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "audmapp"); 889 888 dmac = devm_kzalloc(dev, sizeof(*dmac), GFP_KERNEL); 890 - if (!dmac || !res) { 889 + if (!dmac) { 891 890 dev_err(dev, "dma allocate failed\n"); 891 + return 0; /* it will be PIO mode */ 892 + } 893 + 894 + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "audmapp"); 895 + if (!res) { 896 + dev_err(dev, "lack of audmapp in DT\n"); 892 897 return 0; /* it will be PIO mode */ 893 898 } 894 899