aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/platform.c
diff options
context:
space:
mode:
authorMurali Karicheri <m-karicheri2@ti.com>2014-12-22 10:35:09 -0500
committerRob Herring <robh@kernel.org>2015-01-13 13:48:45 -0600
commit3772160d7b5f40f28ed703ada9b7deef5edc0483 (patch)
tree4ed593c5e45b454d67448468b1d9362a427886b3 /drivers/of/platform.c
parentof: replace Asahi Kasei Corp vendor prefix (diff)
downloadlinux-dev-3772160d7b5f40f28ed703ada9b7deef5edc0483.tar.xz
linux-dev-3772160d7b5f40f28ed703ada9b7deef5edc0483.zip
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: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r--drivers/of/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 5b33c6a21807..a54ec1087fd2 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;