ARM: 7908/1: mm: Fix the arm_dma_limit calculation
authorSantosh Shilimkar <[email protected]>
Mon, 2 Dec 2013 19:29:12 +0000 (20:29 +0100)
committerRussell King <[email protected]>
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 <[email protected]>
Cc: Nicolas Pitre <[email protected]>
Signed-off-by: Santosh Shilimkar <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/mm/init.c