From: Murali Karicheri Date: Mon, 22 Dec 2014 15:35:09 +0000 (-0500) Subject: dma-mapping: fix debug print to display correct dma_pfn_offset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3772160d7b5f40f28ed703ada9b7deef5edc0483;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Rob Herring --- 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;