projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cb114c
)
dmaengine: stm32-mdma: Switch to use device_property_count_u32()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Tue, 23 Jul 2019 19:07:57 +0000
(22:07 +0300)
committer
Vinod Koul
<vkoul@kernel.org>
Mon, 29 Jul 2019 06:55:21 +0000
(12:25 +0530)
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>
drivers/dma/stm32-mdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/stm32-mdma.c
b/drivers/dma/stm32-mdma.c
index d6e919d3936a295e75271329035f02ad7239e076..0d56fde78c1f12cecd8586a9fa92d179628a561f 100644
(file)
--- 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;