Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dfec7ca authored by Pierre-Yves MORDRET's avatar Pierre-Yves MORDRET Committed by Vinod Koul
Browse files

dmaengine: stm32-mdma: Revert "dmaengine: stm32-mdma: Add a check on read_u32_array"



This reverts commit 906b40b2 ("dmaengine: stm32-mdma: Add a check on
read_u32_array")

As stated by bindings "st,ahb-addr-masks" is optional.
The statement inserted by this commit makes this property
mandatory and prevents MDMA to be probed in case property not present.

Signed-off-by: default avatarPierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 9e98c678
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1578,11 +1578,9 @@ static int stm32_mdma_probe(struct platform_device *pdev)

	dmadev->nr_channels = nr_channels;
	dmadev->nr_requests = nr_requests;
	ret = device_property_read_u32_array(&pdev->dev, "st,ahb-addr-masks",
	device_property_read_u32_array(&pdev->dev, "st,ahb-addr-masks",
				       dmadev->ahb_addr_masks,
				       count);
	if (ret)
		return ret;
	dmadev->nr_ahb_addr_masks = count;

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);