Commit a725e582 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Vinod Koul
Browse files

dmaengine: ti: deprecate '#dma-channels'



The generic property, used in most of the drivers and defined in generic
dma-common DT bindings, is 'dma-channels'.  Switch to new property while
keeping backward compatibility.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarTony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20220427161126.647073-4-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 607c04a0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1105,6 +1105,10 @@ static int cppi41_dma_probe(struct platform_device *pdev)
	cdd->qmgr_num_pend = glue_info->qmgr_num_pend;
	cdd->first_completion_queue = glue_info->first_completion_queue;

	/* Parse new and deprecated dma-channels properties */
	ret = of_property_read_u32(dev->of_node,
				   "dma-channels", &cdd->n_chans);
	if (ret)
		ret = of_property_read_u32(dev->of_node,
					   "#dma-channels", &cdd->n_chans);
	if (ret)