aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/mm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/mm')
-rw-r--r--arch/parisc/mm/ioremap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/parisc/mm/ioremap.c b/arch/parisc/mm/ioremap.c
index 47a1d2ac9419..6c6102307c06 100644
--- a/arch/parisc/mm/ioremap.c
+++ b/arch/parisc/mm/ioremap.c
@@ -128,7 +128,7 @@ remap_area_pages(unsigned long address, unsigned long phys_addr,
128 */ 128 */
129void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) 129void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags)
130{ 130{
131 void *addr; 131 void __iomem *addr;
132 struct vm_struct *area; 132 struct vm_struct *area;
133 unsigned long offset, last_addr; 133 unsigned long offset, last_addr;
134 134
@@ -178,13 +178,13 @@ void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned l
178 if (!area) 178 if (!area)
179 return NULL; 179 return NULL;
180 180
181 addr = area->addr; 181 addr = (void __iomem *) area->addr;
182 if (remap_area_pages((unsigned long) addr, phys_addr, size, flags)) { 182 if (remap_area_pages((unsigned long) addr, phys_addr, size, flags)) {
183 vfree(addr); 183 vfree(addr);
184 return NULL; 184 return NULL;
185 } 185 }
186 186
187 return (void __iomem *) (offset + (char *)addr); 187 return (void __iomem *) (offset + (char __iomem *)addr);
188} 188}
189EXPORT_SYMBOL(__ioremap); 189EXPORT_SYMBOL(__ioremap);
190 190