devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dma-mapping: fix debug print to display correct dma_pfn_offset
@ 2014-12-22 15:35 Murali Karicheri
  2015-01-13 20:02 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Murali Karicheri @ 2014-12-22 15:35 UTC (permalink / raw)
  To: grant.likely, robh+dt, devicetree, arnd, linux-arm-kernel,
	linux-kernel
  Cc: Murali Karicheri

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: Murali Karicheri <m-karicheri2@ti.com>
---
 drivers/of/platform.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 5b33c6a..a54ec10 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -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;
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-13 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-22 15:35 [PATCH] dma-mapping: fix debug print to display correct dma_pfn_offset Murali Karicheri
2015-01-13 20:02 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).