From: Laurent Pinchart Date: Tue, 15 Apr 2014 15:13:34 +0000 (+0200) Subject: dma: mmp_pdma: Simplify access to channel drcmr value X-Git-Tag: next-20140506~63^2^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a2a7c176cc4ae48ec1589429ef12b89975963b48;p=karo-tx-linux.git 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 Signed-off-by: Vinod Koul --- 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);