ARM: 7908/1: mm: Fix the arm_dma_limit calculation
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 2 Dec 2013 19:29:12 +0000 (20:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 9 Dec 2013 23:24:28 +0000 (23:24 +0000)
commit787b0d5c1ca7ff24feb6f92e4c7f4410ee7d81a8
tree47b4343fff33ee4169ca0f2387e47bee9d56eb03
parent9f28cde0bc643186d32744ce69d12222e8588fe7
ARM: 7908/1: mm: Fix the arm_dma_limit calculation

Current code is using PHYS_OFFSET to calculate the arm_dma_limit which
will lead to wrong calculations in cases where PHYS_OFFSET is updated
runtime.

So fix the code by using __pv_phys_offset instead of PHYS_OFFSET.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/init.c