Skip to content

Commit 9dfec7c

Browse files
stmordretvinodkoul
authored andcommitted
dmaengine: stm32-mdma: Revert "dmaengine: stm32-mdma: Add a check on read_u32_array"
This reverts commit 906b40b ("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: Pierre-Yves MORDRET <pierre-yves.mordret@st.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 9e98c67 commit 9dfec7c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/dma/stm32-mdma.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,11 +1578,9 @@ static int stm32_mdma_probe(struct platform_device *pdev)
15781578

15791579
dmadev->nr_channels = nr_channels;
15801580
dmadev->nr_requests = nr_requests;
1581-
ret = device_property_read_u32_array(&pdev->dev, "st,ahb-addr-masks",
1581+
device_property_read_u32_array(&pdev->dev, "st,ahb-addr-masks",
15821582
dmadev->ahb_addr_masks,
15831583
count);
1584-
if (ret)
1585-
return ret;
15861584
dmadev->nr_ahb_addr_masks = count;
15871585

15881586
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);

0 commit comments

Comments
 (0)