Commit 3772160d authored by Murali Karicheri's avatar Murali Karicheri Committed by 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: default avatarMurali Karicheri <m-karicheri2@ti.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 7c7a9b3d
...@@ -188,7 +188,7 @@ static void of_dma_configure(struct device *dev) ...@@ -188,7 +188,7 @@ static void of_dma_configure(struct device *dev)
size = dev->coherent_dma_mask; size = dev->coherent_dma_mask;
} else { } else {
offset = PFN_DOWN(paddr - dma_addr); 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; dev->dma_pfn_offset = offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment