hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/parisc/mm/ioremap.c
....@@ -11,7 +11,7 @@
1111 #include <linux/errno.h>
1212 #include <linux/module.h>
1313 #include <linux/io.h>
14
-#include <asm/pgalloc.h>
14
+#include <linux/mm.h>
1515
1616 /*
1717 * Generic mapping function (not visible outside):
....@@ -25,7 +25,7 @@
2525 * have to convert them into an offset in a page-aligned mapping, but the
2626 * caller shouldn't need to know that small detail.
2727 */
28
-void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags)
28
+void __iomem *ioremap(unsigned long phys_addr, unsigned long size)
2929 {
3030 void __iomem *addr;
3131 struct vm_struct *area;
....@@ -36,10 +36,8 @@
3636 unsigned long end = phys_addr + size - 1;
3737 /* Support EISA addresses */
3838 if ((phys_addr >= 0x00080000 && end < 0x000fffff) ||
39
- (phys_addr >= 0x00500000 && end < 0x03bfffff)) {
39
+ (phys_addr >= 0x00500000 && end < 0x03bfffff))
4040 phys_addr |= F_EXTEND(0xfc000000);
41
- flags |= _PAGE_NO_CACHE;
42
- }
4341 #endif
4442
4543 /* Don't allow wraparound or zero size */
....@@ -65,7 +63,7 @@
6563 }
6664
6765 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY |
68
- _PAGE_ACCESSED | flags);
66
+ _PAGE_ACCESSED | _PAGE_NO_CACHE);
6967
7068 /*
7169 * Mappings have to be page-aligned
....@@ -90,7 +88,7 @@
9088
9189 return (void __iomem *) (offset + (char __iomem *)addr);
9290 }
93
-EXPORT_SYMBOL(__ioremap);
91
+EXPORT_SYMBOL(ioremap);
9492
9593 void iounmap(const volatile void __iomem *io_addr)
9694 {