Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Andy Shevchenko and committed by
Vinod Koul
dfa6a2f4 53cbf462

-5
-5
drivers/dma/dw/of.c
··· 54 54 u32 nr_masters; 55 55 u32 nr_channels; 56 56 57 - if (!np) { 58 - dev_err(&pdev->dev, "Missing DT data\n"); 59 - return NULL; 60 - } 61 - 62 57 if (of_property_read_u32(np, "dma-masters", &nr_masters)) 63 58 return NULL; 64 59 if (nr_masters < 1 || nr_masters > DW_DMA_MAX_NR_MASTERS)