diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-07-23 21:07:56 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-07-29 08:55:21 +0200 |
commit | 2cb114c4fac7a9c3e8fd8c39ceac1e6ca030b412 (patch) | |
tree | 793aea1370b15f0b5219da6f5ac6ece83dbd7876 /drivers/dma | |
parent | dt-bindings: dmaengine: shdma: Rename bindings documentation file (diff) | |
download | linux-2cb114c4fac7a9c3e8fd8c39ceac1e6ca030b412.tar.xz linux-2cb114c4fac7a9c3e8fd8c39ceac1e6ca030b412.zip |
dmaengine: stm32-dmamux: Switch to use device_property_count_u32()
Use use device_property_count_u32() directly, that makes code neater.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20190723190757.67351-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/stm32-dmamux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/stm32-dmamux.c b/drivers/dma/stm32-dmamux.c index b552949da14b..3c89bd39e096 100644 --- a/drivers/dma/stm32-dmamux.c +++ b/drivers/dma/stm32-dmamux.c @@ -185,8 +185,7 @@ static int stm32_dmamux_probe(struct platform_device *pdev) if (!node) return -ENODEV; - count = device_property_read_u32_array(&pdev->dev, "dma-masters", - NULL, 0); + count = device_property_count_u32(&pdev->dev, "dma-masters"); if (count < 0) { dev_err(&pdev->dev, "Can't get DMA master(s) node\n"); return -ENODEV; |