dmaengine: cppi41: init_sched(): Get number of channels from DT
authorAlexandre Bailon <abailon@baylibre.com>
Wed, 15 Feb 2017 13:56:35 +0000 (14:56 +0100)
committerVinod Koul <vinod.koul@intel.com>
Tue, 7 Mar 2017 08:08:25 +0000 (13:38 +0530)
commit5e46fe98ab658eab817398abd895908854bb4c43
tree9b15e7485f4b5221e2a008fe8cc33aed5f8360fd
parent2d535b2629bfdf30c972ea394669bd146f752091
dmaengine: cppi41: init_sched(): Get number of channels from DT

Despite the driver is already using DT to get the number of channels,
init_sched() is using an hardcoded value to get it.
Use DT to get the number of channels.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/cppi41.c