diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2012-10-10 11:45:31 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-10-25 11:22:35 -0400 |
commit | 6cb1b145b912721f7a00f3fb5938765b34558b08 (patch) | |
tree | 208a150411995cc7ae159c31ea8bd8799272bf2b /arch/arm/mach-clps711x/autcpu12.c | |
parent | 36504ac131d14611dded451dd8b9f8426d084111 (diff) |
ARM: clps711x: make all virtual addresses definition via one macro
This patch make all virtual addresses definition via one macro.
This modification allows to avoid warning "BUG: mapping for 0x80000000
at 0xff000000 out of vmalloc space".
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-clps711x/autcpu12.c')
-rw-r--r-- | arch/arm/mach-clps711x/autcpu12.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/arch/arm/mach-clps711x/autcpu12.c b/arch/arm/mach-clps711x/autcpu12.c index 32871918bb6e..214547b5c51f 100644 --- a/arch/arm/mach-clps711x/autcpu12.c +++ b/arch/arm/mach-clps711x/autcpu12.c | |||
@@ -39,19 +39,10 @@ | |||
39 | 39 | ||
40 | #include "common.h" | 40 | #include "common.h" |
41 | 41 | ||
42 | /* | ||
43 | * The on-chip registers are given a size of 1MB so that a section can | ||
44 | * be used to map them; this saves a page table. This is the place to | ||
45 | * add mappings for ROM, expansion memory, PCMCIA, etc. (if static | ||
46 | * mappings are chosen for those areas). | ||
47 | * | ||
48 | */ | ||
49 | |||
50 | static struct map_desc autcpu12_io_desc[] __initdata = { | 42 | static struct map_desc autcpu12_io_desc[] __initdata = { |
51 | /* memory-mapped extra io and CS8900A Ethernet chip */ | 43 | /* Memory-mapped extra io and CS8900A Ethernet chip */ |
52 | /* ethernet chip */ | 44 | { |
53 | { | 45 | .virtual = IO_ADDRESS(AUTCPU12_PHYS_CS8900A), |
54 | .virtual = AUTCPU12_VIRT_CS8900A, | ||
55 | .pfn = __phys_to_pfn(AUTCPU12_PHYS_CS8900A), | 46 | .pfn = __phys_to_pfn(AUTCPU12_PHYS_CS8900A), |
56 | .length = SZ_1M, | 47 | .length = SZ_1M, |
57 | .type = MT_DEVICE | 48 | .type = MT_DEVICE |