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

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>

authored by

Andy Shevchenko and committed by
Vinod Koul
2cb114c4 ffbb569b

+1 -2
+1 -2
drivers/dma/stm32-dmamux.c
··· 185 185 if (!node) 186 186 return -ENODEV; 187 187 188 - count = device_property_read_u32_array(&pdev->dev, "dma-masters", 189 - NULL, 0); 188 + count = device_property_count_u32(&pdev->dev, "dma-masters"); 190 189 if (count < 0) { 191 190 dev_err(&pdev->dev, "Can't get DMA master(s) node\n"); 192 191 return -ENODEV;