提交 3772160d 编写于 作者: M Murali Karicheri 提交者: Rob Herring

dma-mapping: fix debug print to display correct dma_pfn_offset

fix the dev_dbg to display the offset which is the calculated
dma_pfn_offset value and set later in the code.
Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
Signed-off-by: NRob Herring <robh@kernel.org>
上级 7c7a9b3d
......@@ -188,7 +188,7 @@ static void of_dma_configure(struct device *dev)
size = dev->coherent_dma_mask;
} else {
offset = PFN_DOWN(paddr - dma_addr);
dev_dbg(dev, "dma_pfn_offset(%#08lx)\n", dev->dma_pfn_offset);
dev_dbg(dev, "dma_pfn_offset(%#08lx)\n", offset);
}
dev->dma_pfn_offset = offset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册