mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04: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 <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
af98715f28
commit
a2a7c176cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue