diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-07 06:40:52 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-08-17 03:44:16 -0400 |
| commit | 5e4cdb83edd69d24b744cd88a9537680e905a518 (patch) | |
| tree | 51d4b1998608d4caeb56ee64d428e56e37fc35e5 | |
| parent | 06cf0b5468f204754f32e571f8415b20cedbe5f0 (diff) | |
ARM: io: RiscPC: make EASI_BASE a void iomem pointer
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
| -rw-r--r-- | arch/arm/kernel/ecard.c | 2 | ||||
| -rw-r--r-- | arch/arm/mach-rpc/include/mach/hardware.h | 4 | ||||
| -rw-r--r-- | arch/arm/mach-rpc/riscpc.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c index 3e84f66de8f7..4dd0edab6a65 100644 --- a/arch/arm/kernel/ecard.c +++ b/arch/arm/kernel/ecard.c | |||
| @@ -237,7 +237,7 @@ static void ecard_init_pgtables(struct mm_struct *mm) | |||
| 237 | 237 | ||
| 238 | memcpy(dst_pgd, src_pgd, sizeof(pgd_t) * (IO_SIZE / PGDIR_SIZE)); | 238 | memcpy(dst_pgd, src_pgd, sizeof(pgd_t) * (IO_SIZE / PGDIR_SIZE)); |
| 239 | 239 | ||
| 240 | src_pgd = pgd_offset(mm, EASI_BASE); | 240 | src_pgd = pgd_offset(mm, (unsigned long)EASI_BASE); |
| 241 | dst_pgd = pgd_offset(mm, EASI_START); | 241 | dst_pgd = pgd_offset(mm, EASI_START); |
| 242 | 242 | ||
| 243 | memcpy(dst_pgd, src_pgd, sizeof(pgd_t) * (EASI_SIZE / PGDIR_SIZE)); | 243 | memcpy(dst_pgd, src_pgd, sizeof(pgd_t) * (EASI_SIZE / PGDIR_SIZE)); |
diff --git a/arch/arm/mach-rpc/include/mach/hardware.h b/arch/arm/mach-rpc/include/mach/hardware.h index 41777660d9fe..050d63c74cc1 100644 --- a/arch/arm/mach-rpc/include/mach/hardware.h +++ b/arch/arm/mach-rpc/include/mach/hardware.h | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | #define EASI_SIZE 0x08000000 /* EASI I/O */ | 37 | #define EASI_SIZE 0x08000000 /* EASI I/O */ |
| 38 | #define EASI_START 0x08000000 | 38 | #define EASI_START 0x08000000 |
| 39 | #define EASI_BASE 0xe5000000 | 39 | #define EASI_BASE IOMEM(0xe5000000) |
| 40 | 40 | ||
| 41 | #define IO_START 0x03000000 /* I/O */ | 41 | #define IO_START 0x03000000 /* I/O */ |
| 42 | #define IO_SIZE 0x01000000 | 42 | #define IO_SIZE 0x01000000 |
| @@ -51,7 +51,7 @@ | |||
| 51 | /* | 51 | /* |
| 52 | * IO Addresses | 52 | * IO Addresses |
| 53 | */ | 53 | */ |
| 54 | #define ECARD_EASI_BASE (IO_BASE + 0x05000000) | 54 | #define ECARD_EASI_BASE (EASI_BASE) |
| 55 | #define VIDC_BASE (IO_BASE + 0x00400000) | 55 | #define VIDC_BASE (IO_BASE + 0x00400000) |
| 56 | #define EXPMASK_BASE (IO_BASE + 0x00360000) | 56 | #define EXPMASK_BASE (IO_BASE + 0x00360000) |
| 57 | #define ECARD_IOC4_BASE (IO_BASE + 0x00270000) | 57 | #define ECARD_IOC4_BASE (IO_BASE + 0x00270000) |
diff --git a/arch/arm/mach-rpc/riscpc.c b/arch/arm/mach-rpc/riscpc.c index 580b3c73d2c7..1e0e60d04622 100644 --- a/arch/arm/mach-rpc/riscpc.c +++ b/arch/arm/mach-rpc/riscpc.c | |||
| @@ -74,7 +74,7 @@ static struct map_desc rpc_io_desc[] __initdata = { | |||
| 74 | .length = IO_SIZE , | 74 | .length = IO_SIZE , |
| 75 | .type = MT_DEVICE | 75 | .type = MT_DEVICE |
| 76 | }, { /* EASI space */ | 76 | }, { /* EASI space */ |
| 77 | .virtual = EASI_BASE, | 77 | .virtual = (unsigned long)EASI_BASE, |
| 78 | .pfn = __phys_to_pfn(EASI_START), | 78 | .pfn = __phys_to_pfn(EASI_START), |
| 79 | .length = EASI_SIZE, | 79 | .length = EASI_SIZE, |
| 80 | .type = MT_DEVICE | 80 | .type = MT_DEVICE |
