summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-clps711x/mm.c
diff options
context:
space:
mode:
authorDeepak Saxena <dsaxena@plexity.net>2005-10-28 16:19:05 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-10-28 16:19:05 +0200
commitf10083f5a6f4a2735cca3a8c762457272ea66bf0 (patch)
treefcfe67bcb1b14305ffdad376a2b0ee10377a1916 /arch/arm/mach-clps711x/mm.c
parent[ARM] 2992/1: Replace map_desc.physical with map_desc.pfn: SA1100 (diff)
downloadlinux-f10083f5a6f4a2735cca3a8c762457272ea66bf0.tar.xz
linux-f10083f5a6f4a2735cca3a8c762457272ea66bf0.zip
[ARM] 2993/1: Replace map_desc.physical with map_desc.pfn: CLPS711x
Patch from Deepak Saxena CLSP711x map_desc.pfn conversion Signed-off-by: Deepak Saxena <dsaxena@plexity.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-clps711x/mm.c')
-rw-r--r--arch/arm/mach-clps711x/mm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-clps711x/mm.c b/arch/arm/mach-clps711x/mm.c
index 120b7cac84b5..a00f77ef8df8 100644
--- a/arch/arm/mach-clps711x/mm.c
+++ b/arch/arm/mach-clps711x/mm.c
@@ -24,6 +24,7 @@
#include <linux/init.h>
#include <linux/bootmem.h>
+#include <asm/sizes.h>
#include <asm/hardware.h>
#include <asm/pgtable.h>
#include <asm/page.h>
@@ -34,7 +35,12 @@
* This maps the generic CLPS711x registers
*/
static struct map_desc clps711x_io_desc[] __initdata = {
- { CLPS7111_VIRT_BASE, CLPS7111_PHYS_BASE, 1048576, MT_DEVICE }
+ {
+ .virtual = CLPS7111_VIRT_BASE,
+ .pfn = __phys_to_pfn(CLPS7111_PHYS_BASE),
+ .length = SZ_1M,
+ .type = MT_DEVICE
+ }
};
void __init clps711x_map_io(void)