Skip to content

Commit dfa6a2f

Browse files
andy-shevvinodkoul
authored andcommitted
dmaengine: dw: Remove error message from DT parsing code
Users are a bit frightened of the harmless message that tells that DT is missed on ACPI-based platforms. Remove it for good, it will simplify the future conversion to fwnode and device property APIs. Fixes: a9ddb57 ("dmaengine: dw_dmac: Enhance device tree support") Depends-on: f5e84ea ("dmaengine: dw: platform: Split OF helpers to separate module") BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199379 Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Serge Semin <[email protected]> Tested-by: Serge Semin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 53cbf46 commit dfa6a2f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/dma/dw/of.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ struct dw_dma_platform_data *dw_dma_parse_dt(struct platform_device *pdev)
5454
u32 nr_masters;
5555
u32 nr_channels;
5656

57-
if (!np) {
58-
dev_err(&pdev->dev, "Missing DT data\n");
59-
return NULL;
60-
}
61-
6257
if (of_property_read_u32(np, "dma-masters", &nr_masters))
6358
return NULL;
6459
if (nr_masters < 1 || nr_masters > DW_DMA_MAX_NR_MASTERS)

0 commit comments

Comments
 (0)