diff options
Diffstat (limited to 'drivers/dma/mmp_pdma.c')
-rw-r--r-- | drivers/dma/mmp_pdma.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index dc7466563507..c26699f9c4df 100644 --- a/drivers/dma/mmp_pdma.c +++ b/drivers/dma/mmp_pdma.c | |||
@@ -618,10 +618,8 @@ static int mmp_pdma_control(struct dma_chan *dchan, enum dma_ctrl_cmd cmd, | |||
618 | else if (maxburst == 32) | 618 | else if (maxburst == 32) |
619 | chan->dcmd |= DCMD_BURST32; | 619 | chan->dcmd |= DCMD_BURST32; |
620 | 620 | ||
621 | if (cfg) { | 621 | chan->dir = cfg->direction; |
622 | chan->dir = cfg->direction; | 622 | chan->drcmr = cfg->slave_id; |
623 | chan->drcmr = cfg->slave_id; | ||
624 | } | ||
625 | chan->dev_addr = addr; | 623 | chan->dev_addr = addr; |
626 | break; | 624 | break; |
627 | default: | 625 | default: |