diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2014-04-07 18:39:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:36:11 -0400 |
commit | ce816fa88cca083c47ab9000b2138a83043a78be (patch) | |
tree | fcdd6e68adb239187eb833722261ff348610809b /arch/sh | |
parent | 6d08a2567c0b9103c3ff946df17ad4be9a917e2f (diff) |
Kconfig: rename HAS_IOPORT to HAS_IOPORT_MAP
If the renamed symbol is defined lib/iomap.c implements ioport_map and
ioport_unmap and currently (nearly) all platforms define the port
accessor functions outb/inb and friend unconditionally. So
HAS_IOPORT_MAP is the better name for this.
Consequently NO_IOPORT is renamed to NO_IOPORT_MAP.
The motivation for this change is to reintroduce a symbol HAS_IOPORT
that signals if outb/int et al are available. I will address that at
least one merge window later though to keep surprises to a minimum and
catch new introductions of (HAS|NO)_IOPORT.
The changes in this commit were done using:
$ git grep -l -E '(NO|HAS)_IOPORT' | xargs perl -p -i -e 's/\b((?:CONFIG_)?(?:NO|HAS)_IOPORT)\b/$1_MAP/'
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Kconfig | 4 | ||||
-rw-r--r-- | arch/sh/boards/Kconfig | 8 | ||||
-rw-r--r-- | arch/sh/include/asm/io.h | 4 | ||||
-rw-r--r-- | arch/sh/include/asm/io_trapped.h | 2 | ||||
-rw-r--r-- | arch/sh/include/asm/machvec.h | 2 | ||||
-rw-r--r-- | arch/sh/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/sh/kernel/io_trapped.c | 4 |
7 files changed, 13 insertions, 13 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 1399383315a3..ba55e939a820 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -3,7 +3,7 @@ config SUPERH | |||
3 | select ARCH_MIGHT_HAVE_PC_PARPORT | 3 | select ARCH_MIGHT_HAVE_PC_PARPORT |
4 | select EXPERT | 4 | select EXPERT |
5 | select CLKDEV_LOOKUP | 5 | select CLKDEV_LOOKUP |
6 | select HAVE_IDE if HAS_IOPORT | 6 | select HAVE_IDE if HAS_IOPORT_MAP |
7 | select HAVE_MEMBLOCK | 7 | select HAVE_MEMBLOCK |
8 | select HAVE_MEMBLOCK_NODE_MAP | 8 | select HAVE_MEMBLOCK_NODE_MAP |
9 | select ARCH_DISCARD_MEMBLOCK | 9 | select ARCH_DISCARD_MEMBLOCK |
@@ -138,7 +138,7 @@ config ARCH_HAS_ILOG2_U32 | |||
138 | config ARCH_HAS_ILOG2_U64 | 138 | config ARCH_HAS_ILOG2_U64 |
139 | def_bool n | 139 | def_bool n |
140 | 140 | ||
141 | config NO_IOPORT | 141 | config NO_IOPORT_MAP |
142 | def_bool !PCI | 142 | def_bool !PCI |
143 | depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \ | 143 | depends on !SH_CAYMAN && !SH_SH4202_MICRODEV && !SH_SHMIN && \ |
144 | !SH_HP6XX && !SH_SOLUTION_ENGINE | 144 | !SH_HP6XX && !SH_SOLUTION_ENGINE |
diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig index eb1cf84231a2..e331e5373b8e 100644 --- a/arch/sh/boards/Kconfig +++ b/arch/sh/boards/Kconfig | |||
@@ -158,7 +158,7 @@ config SH_SDK7786 | |||
158 | bool "SDK7786" | 158 | bool "SDK7786" |
159 | depends on CPU_SUBTYPE_SH7786 | 159 | depends on CPU_SUBTYPE_SH7786 |
160 | select SYS_SUPPORTS_PCI | 160 | select SYS_SUPPORTS_PCI |
161 | select NO_IOPORT if !PCI | 161 | select NO_IOPORT_MAP if !PCI |
162 | select ARCH_WANT_OPTIONAL_GPIOLIB | 162 | select ARCH_WANT_OPTIONAL_GPIOLIB |
163 | select HAVE_SRAM_POOL | 163 | select HAVE_SRAM_POOL |
164 | select REGULATOR_FIXED_VOLTAGE if REGULATOR | 164 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
@@ -204,7 +204,7 @@ config SH_URQUELL | |||
204 | depends on CPU_SUBTYPE_SH7786 | 204 | depends on CPU_SUBTYPE_SH7786 |
205 | select ARCH_REQUIRE_GPIOLIB | 205 | select ARCH_REQUIRE_GPIOLIB |
206 | select SYS_SUPPORTS_PCI | 206 | select SYS_SUPPORTS_PCI |
207 | select NO_IOPORT if !PCI | 207 | select NO_IOPORT_MAP if !PCI |
208 | 208 | ||
209 | config SH_MIGOR | 209 | config SH_MIGOR |
210 | bool "Migo-R" | 210 | bool "Migo-R" |
@@ -306,7 +306,7 @@ config SH_LBOX_RE2 | |||
306 | config SH_X3PROTO | 306 | config SH_X3PROTO |
307 | bool "SH-X3 Prototype board" | 307 | bool "SH-X3 Prototype board" |
308 | depends on CPU_SUBTYPE_SHX3 | 308 | depends on CPU_SUBTYPE_SHX3 |
309 | select NO_IOPORT if !PCI | 309 | select NO_IOPORT_MAP if !PCI |
310 | select IRQ_DOMAIN | 310 | select IRQ_DOMAIN |
311 | 311 | ||
312 | config SH_MAGIC_PANEL_R2 | 312 | config SH_MAGIC_PANEL_R2 |
@@ -333,7 +333,7 @@ config SH_POLARIS | |||
333 | 333 | ||
334 | config SH_SH2007 | 334 | config SH_SH2007 |
335 | bool "SH-2007 board" | 335 | bool "SH-2007 board" |
336 | select NO_IOPORT | 336 | select NO_IOPORT_MAP |
337 | select REGULATOR_FIXED_VOLTAGE if REGULATOR | 337 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
338 | depends on CPU_SUBTYPE_SH7780 | 338 | depends on CPU_SUBTYPE_SH7780 |
339 | help | 339 | help |
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index 629db2ad7916..728c4c571f40 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h | |||
@@ -122,7 +122,7 @@ __BUILD_MEMORY_STRING(__raw_, l, u32) | |||
122 | 122 | ||
123 | __BUILD_MEMORY_STRING(__raw_, q, u64) | 123 | __BUILD_MEMORY_STRING(__raw_, q, u64) |
124 | 124 | ||
125 | #ifdef CONFIG_HAS_IOPORT | 125 | #ifdef CONFIG_HAS_IOPORT_MAP |
126 | 126 | ||
127 | /* | 127 | /* |
128 | * Slowdown I/O port space accesses for antique hardware. | 128 | * Slowdown I/O port space accesses for antique hardware. |
@@ -218,7 +218,7 @@ __BUILD_IOPORT_STRING(w, u16) | |||
218 | __BUILD_IOPORT_STRING(l, u32) | 218 | __BUILD_IOPORT_STRING(l, u32) |
219 | __BUILD_IOPORT_STRING(q, u64) | 219 | __BUILD_IOPORT_STRING(q, u64) |
220 | 220 | ||
221 | #else /* !CONFIG_HAS_IOPORT */ | 221 | #else /* !CONFIG_HAS_IOPORT_MAP */ |
222 | 222 | ||
223 | #include <asm/io_noioport.h> | 223 | #include <asm/io_noioport.h> |
224 | 224 | ||
diff --git a/arch/sh/include/asm/io_trapped.h b/arch/sh/include/asm/io_trapped.h index f1251d4f0ba9..4ab94ef51071 100644 --- a/arch/sh/include/asm/io_trapped.h +++ b/arch/sh/include/asm/io_trapped.h | |||
@@ -36,7 +36,7 @@ __ioremap_trapped(unsigned long offset, unsigned long size) | |||
36 | #define __ioremap_trapped(offset, size) NULL | 36 | #define __ioremap_trapped(offset, size) NULL |
37 | #endif | 37 | #endif |
38 | 38 | ||
39 | #ifdef CONFIG_HAS_IOPORT | 39 | #ifdef CONFIG_HAS_IOPORT_MAP |
40 | extern struct list_head trapped_io; | 40 | extern struct list_head trapped_io; |
41 | 41 | ||
42 | static inline void __iomem * | 42 | static inline void __iomem * |
diff --git a/arch/sh/include/asm/machvec.h b/arch/sh/include/asm/machvec.h index eb9c20d971dd..d3324e4f372e 100644 --- a/arch/sh/include/asm/machvec.h +++ b/arch/sh/include/asm/machvec.h | |||
@@ -21,7 +21,7 @@ struct sh_machine_vector { | |||
21 | int (*mv_irq_demux)(int irq); | 21 | int (*mv_irq_demux)(int irq); |
22 | void (*mv_init_irq)(void); | 22 | void (*mv_init_irq)(void); |
23 | 23 | ||
24 | #ifdef CONFIG_HAS_IOPORT | 24 | #ifdef CONFIG_HAS_IOPORT_MAP |
25 | void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size); | 25 | void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size); |
26 | void (*mv_ioport_unmap)(void __iomem *); | 26 | void (*mv_ioport_unmap)(void __iomem *); |
27 | #endif | 27 | #endif |
diff --git a/arch/sh/kernel/Makefile b/arch/sh/kernel/Makefile index 261c8bfd75ce..2ccf36c824c6 100644 --- a/arch/sh/kernel/Makefile +++ b/arch/sh/kernel/Makefile | |||
@@ -22,7 +22,7 @@ obj-y := debugtraps.o dma-nommu.o dumpstack.o \ | |||
22 | 22 | ||
23 | ifndef CONFIG_GENERIC_IOMAP | 23 | ifndef CONFIG_GENERIC_IOMAP |
24 | obj-y += iomap.o | 24 | obj-y += iomap.o |
25 | obj-$(CONFIG_HAS_IOPORT) += ioport.o | 25 | obj-$(CONFIG_HAS_IOPORT_MAP) += ioport.o |
26 | endif | 26 | endif |
27 | 27 | ||
28 | obj-$(CONFIG_SUPERH32) += sys_sh32.o | 28 | obj-$(CONFIG_SUPERH32) += sys_sh32.o |
diff --git a/arch/sh/kernel/io_trapped.c b/arch/sh/kernel/io_trapped.c index c0a9761f2f8a..f8ce36286cea 100644 --- a/arch/sh/kernel/io_trapped.c +++ b/arch/sh/kernel/io_trapped.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #define TRAPPED_PAGES_MAX 16 | 23 | #define TRAPPED_PAGES_MAX 16 |
24 | 24 | ||
25 | #ifdef CONFIG_HAS_IOPORT | 25 | #ifdef CONFIG_HAS_IOPORT_MAP |
26 | LIST_HEAD(trapped_io); | 26 | LIST_HEAD(trapped_io); |
27 | EXPORT_SYMBOL_GPL(trapped_io); | 27 | EXPORT_SYMBOL_GPL(trapped_io); |
28 | #endif | 28 | #endif |
@@ -90,7 +90,7 @@ int register_trapped_io(struct trapped_io *tiop) | |||
90 | tiop->magic = IO_TRAPPED_MAGIC; | 90 | tiop->magic = IO_TRAPPED_MAGIC; |
91 | INIT_LIST_HEAD(&tiop->list); | 91 | INIT_LIST_HEAD(&tiop->list); |
92 | spin_lock_irq(&trapped_lock); | 92 | spin_lock_irq(&trapped_lock); |
93 | #ifdef CONFIG_HAS_IOPORT | 93 | #ifdef CONFIG_HAS_IOPORT_MAP |
94 | if (flags & IORESOURCE_IO) | 94 | if (flags & IORESOURCE_IO) |
95 | list_add(&tiop->list, &trapped_io); | 95 | list_add(&tiop->list, &trapped_io); |
96 | #endif | 96 | #endif |