hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/arch/nios2/include/asm/io.h
....@@ -25,29 +25,8 @@
2525 #define writew_relaxed(x, addr) writew(x, addr)
2626 #define writel_relaxed(x, addr) writel(x, addr)
2727
28
-extern void __iomem *__ioremap(unsigned long physaddr, unsigned long size,
29
- unsigned long cacheflag);
30
-extern void __iounmap(void __iomem *addr);
31
-
32
-static inline void __iomem *ioremap(unsigned long physaddr, unsigned long size)
33
-{
34
- return __ioremap(physaddr, size, 0);
35
-}
36
-
37
-static inline void __iomem *ioremap_nocache(unsigned long physaddr,
38
- unsigned long size)
39
-{
40
- return __ioremap(physaddr, size, 0);
41
-}
42
-
43
-static inline void iounmap(void __iomem *addr)
44
-{
45
- __iounmap(addr);
46
-}
47
-
48
-#define ioremap_nocache ioremap_nocache
49
-#define ioremap_wc ioremap_nocache
50
-#define ioremap_wt ioremap_nocache
28
+void __iomem *ioremap(unsigned long physaddr, unsigned long size);
29
+void iounmap(void __iomem *addr);
5130
5231 /* Pages to physical address... */
5332 #define page_to_phys(page) virt_to_phys(page_to_virt(page))