From 90bfe6af18c84a7e3ba424cba0c2602d883bd286 Mon Sep 17 00:00:00 2001 From: Terry Lv Date: Wed, 12 May 2010 22:49:24 +0800 Subject: ENGR00122651: Add dwc_ahsata support Add dwc_ahsata support. Signed-off-by: Terry Lv --- include/asm-arm/arch-mx35/mmu.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/asm-arm/arch-mx35') diff --git a/include/asm-arm/arch-mx35/mmu.h b/include/asm-arm/arch-mx35/mmu.h index 1e9a96f..1b15dba 100644 --- a/include/asm-arm/arch-mx35/mmu.h +++ b/include/asm-arm/arch-mx35/mmu.h @@ -136,15 +136,15 @@ union ARM_MMU_FIRST_LEVEL_DESCRIPTOR { * Translate the virtual address of ram space to physical address * It is dependent on the implementation of mmu_init */ -inline void *iomem_to_phys(unsigned long virt) +inline unsigned long iomem_to_phys(unsigned long virt) { if (virt < 0x08000000) - return (void *)(virt | PHYS_SDRAM_1); + return (unsigned long)(virt | PHYS_SDRAM_1); if ((virt & 0xF0000000) == PHYS_SDRAM_1) - return (void *)(virt & (~0x08000000)); + return (unsigned long)(virt & (~0x08000000)); - return (void *)virt; + return (unsigned long)virt; } /* -- cgit v1.1