dmaengine: dma-jz4780: Avoid hardcoding number of channels
authorPaul Cercueil <paul@crapouillou.net>
Wed, 29 Aug 2018 21:32:45 +0000 (23:32 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 11 Sep 2018 07:29:26 +0000 (12:59 +0530)
commit6147b032e544105cafaee25b416f7e919c3bb7d3
treec8cb825477e412f3a3c763d1dc40d3298438af15
parent54f919a04cf221bc1601d1193682d4379dacacbd
dmaengine: dma-jz4780: Avoid hardcoding number of channels

As part of the work to support various other Ingenic JZ47xx SoC versions,
which don't feature the same number of DMA channels per core, we now
deduce the number of DMA channels available from the devicetree
compatible string.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-jz4780.c