summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-04-15 17:13:34 +0200
committerVinod Koul <vinod.koul@intel.com>2014-05-02 21:19:07 +0530
commita2a7c176cc4ae48ec1589429ef12b89975963b48 (patch)
tree1ab4034f3b835c8755d5a0b569e12eef6bbc9501 /drivers/dma
parentaf98715f28174fabea8f1bea3d297b8f0ad1f84b (diff)
downloadlinux-a2a7c176cc4ae48ec1589429ef12b89975963b48.tar.bz2
dma: mmp_pdma: Simplify access to channel drcmr value
As the physical channel and virtual channel point to each other, pchan->phy->vchan is always equal to pchan. Simplify the code accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/mmp_pdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c
index bf02e7beb51a..f3fe92da295f 100644
--- a/drivers/dma/mmp_pdma.c
+++ b/drivers/dma/mmp_pdma.c
@@ -277,7 +277,7 @@ static void mmp_pdma_free_phy(struct mmp_pdma_chan *pchan)
return;
/* clear the channel mapping in DRCMR */
- reg = DRCMR(pchan->phy->vchan->drcmr);
+ reg = DRCMR(pchan->drcmr);
writel(0, pchan->phy->base + reg);
spin_lock_irqsave(&pdev->phy_lock, flags);