ARM: dma: use phys_addr_t in __dma_page_[cpu_to_dev/dev_to_cpu]
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Thu, 24 Apr 2014 15:30:07 +0000 (11:30 -0400)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Wed, 7 May 2014 13:21:45 +0000 (09:21 -0400)
commit2161c2485d03520060f6094359b22f33913eefa2
treeea6d4386a3172b0cb2be1d4e2ba720a5bfdf0063
parent812b99e4b024d6f83e9281ec1a0bd4bf63dad90f
ARM: dma: use phys_addr_t in __dma_page_[cpu_to_dev/dev_to_cpu]

On a 32 bit ARM architecture with LPAE extension physical addresses
cannot fit into unsigned long variable.

So fix it by using phys_addr_t instead of unsigned long.

Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/mm/dma-mapping.c