diff options
Diffstat (limited to 'arch/parisc/mm/ioremap.c')
-rw-r--r-- | arch/parisc/mm/ioremap.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/parisc/mm/ioremap.c b/arch/parisc/mm/ioremap.c index 5a22e1cab217..21a16747e56e 100644 --- a/arch/parisc/mm/ioremap.c +++ b/arch/parisc/mm/ioremap.c | |||
@@ -152,20 +152,21 @@ EXPORT_SYMBOL(__raw_bad_addr); | |||
152 | */ | 152 | */ |
153 | void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) | 153 | void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) |
154 | { | 154 | { |
155 | void *addr; | ||
156 | struct vm_struct *area; | ||
157 | unsigned long offset, last_addr; | ||
158 | |||
155 | #ifdef CONFIG_EISA | 159 | #ifdef CONFIG_EISA |
156 | #error FIXME. | ||
157 | unsigned long end = phys_addr + size - 1; | 160 | unsigned long end = phys_addr + size - 1; |
158 | /* Support EISA addresses */ | 161 | /* Support EISA addresses */ |
159 | if ((phys_addr >= 0x00080000 && end < 0x000fffff) | 162 | if ((phys_addr >= 0x00080000 && end < 0x000fffff) |
160 | || (phys_addr >= 0x00500000 && end < 0x03bfffff)) { | 163 | || (phys_addr >= 0x00500000 && end < 0x03bfffff)) { |
161 | phys_addr |= 0xfc000000; | 164 | phys_addr |= 0xfc000000; |
165 | #warning "FIXME: EISA regions do not work yet..." | ||
166 | return NULL; /* XXX */ | ||
162 | } | 167 | } |
163 | #endif | 168 | #endif |
164 | 169 | ||
165 | void *addr; | ||
166 | struct vm_struct *area; | ||
167 | unsigned long offset, last_addr; | ||
168 | |||
169 | /* Don't allow wraparound or zero size */ | 170 | /* Don't allow wraparound or zero size */ |
170 | last_addr = phys_addr + size - 1; | 171 | last_addr = phys_addr + size - 1; |
171 | if (!size || last_addr < phys_addr) | 172 | if (!size || last_addr < phys_addr) |