diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-04-15 17:13:34 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-05-02 21:19:07 +0530 |
commit | a2a7c176cc4ae48ec1589429ef12b89975963b48 (patch) | |
tree | 1ab4034f3b835c8755d5a0b569e12eef6bbc9501 /drivers/dma/mmp_pdma.c | |
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>
Diffstat (limited to 'drivers/dma/mmp_pdma.c')
-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 bf02e7beb51..f3fe92da295 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); |