diff options
author | Murali Karicheri <m-karicheri2@ti.com> | 2014-12-22 10:35:09 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-01-13 13:48:45 -0600 |
commit | 3772160d7b5f40f28ed703ada9b7deef5edc0483 (patch) | |
tree | 4ed593c5e45b454d67448468b1d9362a427886b3 | |
parent | 7c7a9b3de5282b5b83b7a5cf388fb8b5bd30d66e (diff) | |
download | op-kernel-dev-3772160d7b5f40f28ed703ada9b7deef5edc0483.zip op-kernel-dev-3772160d7b5f40f28ed703ada9b7deef5edc0483.tar.gz |
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>
-rw-r--r-- | drivers/of/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |