projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53cbf46
)
dmaengine: dw: Remove error message from DT parsing code
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 2 Aug 2021 18:43:53 +0000
(21:43 +0300)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 6 Aug 2021 13:47:46 +0000
(19:17 +0530)
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:
a9ddb575d6d6
("dmaengine: dw_dmac: Enhance device tree support")
Depends-on:
f5e84eae7956
("dmaengine: dw: platform: Split OF helpers to separate module")
BugLink:
https://bugzilla.kernel.org/show_bug.cgi?id=199379
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Link:
https://lore.kernel.org/r/20210802184355.49879-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw/of.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/dw/of.c
b/drivers/dma/dw/of.c
index c1cf7675b9d10c8857855d418e5413e25757689d..4d2b89142721e2ca4df320aa577acc3df7609fdf 100644
(file)
--- a/
drivers/dma/dw/of.c
+++ b/
drivers/dma/dw/of.c
@@
-54,11
+54,6
@@
struct dw_dma_platform_data *dw_dma_parse_dt(struct platform_device *pdev)
u32 nr_masters;
u32 nr_channels;
- if (!np) {
- dev_err(&pdev->dev, "Missing DT data\n");
- return NULL;
- }
-
if (of_property_read_u32(np, "dma-masters", &nr_masters))
return NULL;
if (nr_masters < 1 || nr_masters > DW_DMA_MAX_NR_MASTERS)