aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-12-13 18:16:23 -0500
committerVinod Koul <vinod.koul@intel.com>2013-12-18 11:28:30 -0500
commit1080411c6bf9da8e815292ccdb22f64662a38bb2 (patch)
tree811f66d4fd68015a01997753774843ac045fd176 /drivers/dma
parent0e772c672686460c5341fa2914c02c45c2b6a3f3 (diff)
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/amba-pl08x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index ec4ee5c1fe9d..f68f1c1d560b 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -2167,7 +2167,7 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)
2167 /* Register slave channels */ 2167 /* Register slave channels */
2168 ret = pl08x_dma_init_virtual_channels(pl08x, &pl08x->slave, 2168 ret = pl08x_dma_init_virtual_channels(pl08x, &pl08x->slave,
2169 pl08x->pd->num_slave_channels, true); 2169 pl08x->pd->num_slave_channels, true);
2170 if (ret <= 0) { 2170 if (ret < 0) {
2171 dev_warn(&pl08x->adev->dev, 2171 dev_warn(&pl08x->adev->dev,
2172 "%s failed to enumerate slave channels - %d\n", 2172 "%s failed to enumerate slave channels - %d\n",
2173 __func__, ret); 2173 __func__, ret);