dma: mmp_pdma: Simplify access to channel drcmr value
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 15 Apr 2014 15:13:34 +0000 (17:13 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 2 May 2014 15:49:07 +0000 (21:19 +0530)
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>
drivers/dma/mmp_pdma.c

index bf02e7beb51ad5c206cd65dd684a3a3ce83a0f77..f3fe92da295f9ccff4fd14fcabcdd8ae0ebccc73 100644 (file)
@@ -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);