aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-04-15 11:13:34 -0400
committerVinod Koul <vinod.koul@intel.com>2014-05-02 11:49:07 -0400
commita2a7c176cc4ae48ec1589429ef12b89975963b48 (patch)
tree1ab4034f3b835c8755d5a0b569e12eef6bbc9501
parentaf98715f28174fabea8f1bea3d297b8f0ad1f84b (diff)
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>
-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)
277 return; 277 return;
278 278
279 /* clear the channel mapping in DRCMR */ 279 /* clear the channel mapping in DRCMR */
280 reg = DRCMR(pchan->phy->vchan->drcmr); 280 reg = DRCMR(pchan->drcmr);
281 writel(0, pchan->phy->base + reg); 281 writel(0, pchan->phy->base + reg);
282 282
283 spin_lock_irqsave(&pdev->phy_lock, flags); 283 spin_lock_irqsave(&pdev->phy_lock, flags);