diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-04-15 11:13:34 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-05-02 11:49:07 -0400 |
commit | a2a7c176cc4ae48ec1589429ef12b89975963b48 (patch) | |
tree | 1ab4034f3b835c8755d5a0b569e12eef6bbc9501 | |
parent | af98715f28174fabea8f1bea3d297b8f0ad1f84b (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.c | 2 |
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); |