diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-07-23 22:07:57 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-07-29 12:25:21 +0530 |
commit | 57dbd0e4b97d3bc9f257159a8853badff2dfb0d1 (patch) | |
tree | b83adf27bf643a5d7c4e8ac58bad570c613513f3 /drivers/dma/stm32-mdma.c | |
parent | 2cb114c4fac7a9c3e8fd8c39ceac1e6ca030b412 (diff) |
dmaengine: stm32-mdma: 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-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/stm32-mdma.c')
-rw-r--r-- | drivers/dma/stm32-mdma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c index d6e919d3936a..0d56fde78c1f 100644 --- a/drivers/dma/stm32-mdma.c +++ b/drivers/dma/stm32-mdma.c @@ -1555,8 +1555,7 @@ static int stm32_mdma_probe(struct platform_device *pdev) nr_requests); } - count = device_property_read_u32_array(&pdev->dev, "st,ahb-addr-masks", - NULL, 0); + count = device_property_count_u32(&pdev->dev, "st,ahb-addr-masks"); if (count < 0) count = 0; |