mirror of
https://github.com/torvalds/linux.git
synced 2024-10-28 15:51:43 +00:00
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>
This commit is contained in:
parent
af98715f28
commit
a2a7c176cc
|
@ -277,7 +277,7 @@ static void mmp_pdma_free_phy(struct mmp_pdma_chan *pchan)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* clear the channel mapping in DRCMR */
|
/* clear the channel mapping in DRCMR */
|
||||||
reg = DRCMR(pchan->phy->vchan->drcmr);
|
reg = DRCMR(pchan->drcmr);
|
||||||
writel(0, pchan->phy->base + reg);
|
writel(0, pchan->phy->base + reg);
|
||||||
|
|
||||||
spin_lock_irqsave(&pdev->phy_lock, flags);
|
spin_lock_irqsave(&pdev->phy_lock, flags);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user