aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw_dmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/dw_dmac.c')
-rw-r--r--drivers/dma/dw_dmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
index 0778d99aea7c..377dafa37a20 100644
--- a/drivers/dma/dw_dmac.c
+++ b/drivers/dma/dw_dmac.c
@@ -773,7 +773,7 @@ static int dwc_alloc_chan_resources(struct dma_chan *chan,
773 dev_vdbg(&chan->dev, "alloc_chan_resources\n"); 773 dev_vdbg(&chan->dev, "alloc_chan_resources\n");
774 774
775 /* Channels doing slave DMA can only handle one client. */ 775 /* Channels doing slave DMA can only handle one client. */
776 if (dwc->dws || client->slave) { 776 if (dwc->dws || (client && client->slave)) {
777 if (chan->client_count) 777 if (chan->client_count)
778 return -EBUSY; 778 return -EBUSY;
779 } 779 }