diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/parisc/lib/iomap.c | 4 | ||||
-rw-r--r-- | arch/parisc/mm/ioremap.c | 24 |
2 files changed, 0 insertions, 28 deletions
diff --git a/arch/parisc/lib/iomap.c b/arch/parisc/lib/iomap.c index 01bec8fcbd0d..f4a811690ab3 100644 --- a/arch/parisc/lib/iomap.c +++ b/arch/parisc/lib/iomap.c | |||
@@ -263,11 +263,7 @@ static const struct iomap_ops iomem_ops = { | |||
263 | 263 | ||
264 | const struct iomap_ops *iomap_ops[8] = { | 264 | const struct iomap_ops *iomap_ops[8] = { |
265 | [0] = &ioport_ops, | 265 | [0] = &ioport_ops, |
266 | #ifdef CONFIG_DEBUG_IOREMAP | ||
267 | [6] = &iomem_ops, | ||
268 | #else | ||
269 | [7] = &iomem_ops | 266 | [7] = &iomem_ops |
270 | #endif | ||
271 | }; | 267 | }; |
272 | 268 | ||
273 | 269 | ||
diff --git a/arch/parisc/mm/ioremap.c b/arch/parisc/mm/ioremap.c index 21a16747e56e..a5967b7d3726 100644 --- a/arch/parisc/mm/ioremap.c +++ b/arch/parisc/mm/ioremap.c | |||
@@ -114,30 +114,6 @@ remap_area_pages(unsigned long address, unsigned long phys_addr, | |||
114 | return error; | 114 | return error; |
115 | } | 115 | } |
116 | 116 | ||
117 | #ifdef CONFIG_DEBUG_IOREMAP | ||
118 | static unsigned long last = 0; | ||
119 | |||
120 | void gsc_bad_addr(unsigned long addr) | ||
121 | { | ||
122 | if (time_after(jiffies, last + HZ*10)) { | ||
123 | printk("gsc_foo() called with bad address 0x%lx\n", addr); | ||
124 | dump_stack(); | ||
125 | last = jiffies; | ||
126 | } | ||
127 | } | ||
128 | EXPORT_SYMBOL(gsc_bad_addr); | ||
129 | |||
130 | void __raw_bad_addr(const volatile void __iomem *addr) | ||
131 | { | ||
132 | if (time_after(jiffies, last + HZ*10)) { | ||
133 | printk("__raw_foo() called with bad address 0x%p\n", addr); | ||
134 | dump_stack(); | ||
135 | last = jiffies; | ||
136 | } | ||
137 | } | ||
138 | EXPORT_SYMBOL(__raw_bad_addr); | ||
139 | #endif | ||
140 | |||
141 | /* | 117 | /* |
142 | * Generic mapping function (not visible outside): | 118 | * Generic mapping function (not visible outside): |
143 | */ | 119 | */ |