提交 a2a7c176 编写于 作者: L Laurent Pinchart 提交者: Vinod Koul

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: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 af98715f
...@@ -277,7 +277,7 @@ static void mmp_pdma_free_phy(struct mmp_pdma_chan *pchan) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册