dma: pl08x: allow zero slave channels
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Dec 2013 23:16:23 +0000 (00:16 +0100)
committerVinod Koul <vinod.koul@intel.com>
Wed, 18 Dec 2013 16:28:30 +0000 (21:58 +0530)
commit1080411c6bf9da8e815292ccdb22f64662a38bb2
tree811f66d4fd68015a01997753774843ac045fd176
parent0e772c672686460c5341fa2914c02c45c2b6a3f3
dma: pl08x: allow zero slave channels

It might happen that a platform wants to use its DMA engine for
memcpy only, and then we have zero slave channels to initialize,
so allow the slave initialization to return zero.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/amba-pl08x.c