diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-02-11 10:41:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 14:18:07 -0500 |
commit | 5ea8176994003483a18c8fed580901e2125f8a83 (patch) | |
tree | 0712ec9cd3384fbd897eb454ce9c0f907289ab51 /arch | |
parent | 2835fdfa4a7f1400986d76d054237809a9392406 (diff) |
[PATCH] sort the devres mess out
* Split the implementation-agnostic stuff in separate files.
* Make sure that targets using non-default request_irq() pull
kernel/irq/devres.o
* Introduce new symbols (HAS_IOPORT and HAS_IOMEM) defaulting to positive;
allow architectures to turn them off (we needed these symbols anyway for
dependencies of quite a few drivers).
* protect the ioport-related parts of lib/devres.o with CONFIG_HAS_IOPORT.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/Kconfig | 5 | ||||
-rw-r--r-- | arch/cris/Kconfig | 3 | ||||
-rw-r--r-- | arch/h8300/Kconfig | 3 | ||||
-rw-r--r-- | arch/h8300/kernel/Makefile | 4 | ||||
-rw-r--r-- | arch/m32r/Kconfig | 3 | ||||
-rw-r--r-- | arch/m68k/Kconfig | 3 | ||||
-rw-r--r-- | arch/m68k/kernel/Makefile | 4 | ||||
-rw-r--r-- | arch/m68knommu/Kconfig | 3 | ||||
-rw-r--r-- | arch/s390/Kconfig | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/Makefile | 4 | ||||
-rw-r--r-- | arch/um/Kconfig | 3 | ||||
-rw-r--r-- | arch/xtensa/Kconfig | 3 |
12 files changed, 38 insertions, 3 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index fbf4b2a62b60..5c795193ebba 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -29,6 +29,10 @@ config MMU | |||
29 | bool | 29 | bool |
30 | default y | 30 | default y |
31 | 31 | ||
32 | config NO_IOPORT | ||
33 | bool | ||
34 | default n | ||
35 | |||
32 | config EISA | 36 | config EISA |
33 | bool | 37 | bool |
34 | ---help--- | 38 | ---help--- |
@@ -298,6 +302,7 @@ config ARCH_RPC | |||
298 | select TIMER_ACORN | 302 | select TIMER_ACORN |
299 | select ARCH_MAY_HAVE_PC_FDC | 303 | select ARCH_MAY_HAVE_PC_FDC |
300 | select ISA_DMA_API | 304 | select ISA_DMA_API |
305 | select NO_IOPORT | ||
301 | help | 306 | help |
302 | On the Acorn Risc-PC, Linux can support the internal IDE disk and | 307 | On the Acorn Risc-PC, Linux can support the internal IDE disk and |
303 | CD-ROM interface, serial and parallel port, and the floppy drive. | 308 | CD-ROM interface, serial and parallel port, and the floppy drive. |
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig index e3db1427dbe5..4b41248b61ad 100644 --- a/arch/cris/Kconfig +++ b/arch/cris/Kconfig | |||
@@ -44,6 +44,9 @@ config IRQ_PER_CPU | |||
44 | bool | 44 | bool |
45 | default y | 45 | default y |
46 | 46 | ||
47 | config NO_IOPORT | ||
48 | def_bool y | ||
49 | |||
47 | config CRIS | 50 | config CRIS |
48 | bool | 51 | bool |
49 | default y | 52 | default y |
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig index 146eb28f6225..1734d96422c6 100644 --- a/arch/h8300/Kconfig +++ b/arch/h8300/Kconfig | |||
@@ -57,6 +57,9 @@ config TIME_LOW_RES | |||
57 | bool | 57 | bool |
58 | default y | 58 | default y |
59 | 59 | ||
60 | config NO_IOPORT | ||
61 | def_bool y | ||
62 | |||
60 | config ISA | 63 | config ISA |
61 | bool | 64 | bool |
62 | default y | 65 | default y |
diff --git a/arch/h8300/kernel/Makefile b/arch/h8300/kernel/Makefile index 71b6131e98b8..4edbc2ef6ca2 100644 --- a/arch/h8300/kernel/Makefile +++ b/arch/h8300/kernel/Makefile | |||
@@ -6,6 +6,8 @@ extra-y := vmlinux.lds | |||
6 | 6 | ||
7 | obj-y := process.o traps.o ptrace.o ints.o \ | 7 | obj-y := process.o traps.o ptrace.o ints.o \ |
8 | sys_h8300.o time.o semaphore.o signal.o \ | 8 | sys_h8300.o time.o semaphore.o signal.o \ |
9 | setup.o gpio.o init_task.o syscalls.o | 9 | setup.o gpio.o init_task.o syscalls.o devres.o |
10 | |||
11 | devres-y = ../../../kernel/irq/devres.o | ||
10 | 12 | ||
11 | obj-$(CONFIG_MODULES) += module.o h8300_ksyms.o | 13 | obj-$(CONFIG_MODULES) += module.o h8300_ksyms.o |
diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig index 565d0138078e..9740d6b8ae11 100644 --- a/arch/m32r/Kconfig +++ b/arch/m32r/Kconfig | |||
@@ -28,6 +28,9 @@ config GENERIC_IRQ_PROBE | |||
28 | bool | 28 | bool |
29 | default y | 29 | default y |
30 | 30 | ||
31 | config NO_IOPORT | ||
32 | def_bool y | ||
33 | |||
31 | source "init/Kconfig" | 34 | source "init/Kconfig" |
32 | 35 | ||
33 | 36 | ||
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index 0bffbe6e7e11..a8e1e604dfa8 100644 --- a/arch/m68k/Kconfig +++ b/arch/m68k/Kconfig | |||
@@ -42,6 +42,9 @@ config ARCH_MAY_HAVE_PC_FDC | |||
42 | depends on Q40 || (BROKEN && SUN3X) | 42 | depends on Q40 || (BROKEN && SUN3X) |
43 | default y | 43 | default y |
44 | 44 | ||
45 | config NO_IOPORT | ||
46 | def_bool y | ||
47 | |||
45 | mainmenu "Linux/68k Kernel Configuration" | 48 | mainmenu "Linux/68k Kernel Configuration" |
46 | 49 | ||
47 | source "init/Kconfig" | 50 | source "init/Kconfig" |
diff --git a/arch/m68k/kernel/Makefile b/arch/m68k/kernel/Makefile index 1c9ecaa473d5..0b68ab8d63d1 100644 --- a/arch/m68k/kernel/Makefile +++ b/arch/m68k/kernel/Makefile | |||
@@ -10,7 +10,9 @@ endif | |||
10 | extra-y += vmlinux.lds | 10 | extra-y += vmlinux.lds |
11 | 11 | ||
12 | obj-y := entry.o process.o traps.o ints.o signal.o ptrace.o \ | 12 | obj-y := entry.o process.o traps.o ints.o signal.o ptrace.o \ |
13 | sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o | 13 | sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o devres.o |
14 | |||
15 | devres-y = ../../../kernel/irq/devres.o | ||
14 | 16 | ||
15 | obj-$(CONFIG_PCI) += bios32.o | 17 | obj-$(CONFIG_PCI) += bios32.o |
16 | obj-$(CONFIG_MODULES) += module.o | 18 | obj-$(CONFIG_MODULES) += module.o |
diff --git a/arch/m68knommu/Kconfig b/arch/m68knommu/Kconfig index c5fc5406dad0..823f73736bb5 100644 --- a/arch/m68knommu/Kconfig +++ b/arch/m68knommu/Kconfig | |||
@@ -53,6 +53,9 @@ config TIME_LOW_RES | |||
53 | bool | 53 | bool |
54 | default y | 54 | default y |
55 | 55 | ||
56 | config NO_IOPORT | ||
57 | def_bool y | ||
58 | |||
56 | source "init/Kconfig" | 59 | source "init/Kconfig" |
57 | 60 | ||
58 | menu "Processor type and features" | 61 | menu "Processor type and features" |
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index c64973004261..0c83d26ef09a 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -41,6 +41,9 @@ config GENERIC_HWEIGHT | |||
41 | config GENERIC_TIME | 41 | config GENERIC_TIME |
42 | def_bool y | 42 | def_bool y |
43 | 43 | ||
44 | config NO_IOPORT | ||
45 | def_bool y | ||
46 | |||
44 | mainmenu "Linux Kernel Configuration" | 47 | mainmenu "Linux Kernel Configuration" |
45 | 48 | ||
46 | config S390 | 49 | config S390 |
diff --git a/arch/sparc/kernel/Makefile b/arch/sparc/kernel/Makefile index 6616ee05c313..e795f282dece 100644 --- a/arch/sparc/kernel/Makefile +++ b/arch/sparc/kernel/Makefile | |||
@@ -12,7 +12,9 @@ obj-y := entry.o wof.o wuf.o etrap.o rtrap.o traps.o $(IRQ_OBJS) \ | |||
12 | sys_sparc.o sunos_asm.o systbls.o \ | 12 | sys_sparc.o sunos_asm.o systbls.o \ |
13 | time.o windows.o cpu.o devices.o sclow.o \ | 13 | time.o windows.o cpu.o devices.o sclow.o \ |
14 | tadpole.o tick14.o ptrace.o sys_solaris.o \ | 14 | tadpole.o tick14.o ptrace.o sys_solaris.o \ |
15 | unaligned.o muldiv.o semaphore.o prom.o of_device.o | 15 | unaligned.o muldiv.o semaphore.o prom.o of_device.o devres.o |
16 | |||
17 | devres-y = ../../../kernel/irq/devres.o | ||
16 | 18 | ||
17 | obj-$(CONFIG_PCI) += pcic.o | 19 | obj-$(CONFIG_PCI) += pcic.o |
18 | obj-$(CONFIG_SUN4) += sun4setup.o | 20 | obj-$(CONFIG_SUN4) += sun4setup.o |
diff --git a/arch/um/Kconfig b/arch/um/Kconfig index d32a80e6668c..b3a21ba77cd2 100644 --- a/arch/um/Kconfig +++ b/arch/um/Kconfig | |||
@@ -16,6 +16,9 @@ config MMU | |||
16 | bool | 16 | bool |
17 | default y | 17 | default y |
18 | 18 | ||
19 | config NO_IOMEM | ||
20 | def_bool y | ||
21 | |||
19 | mainmenu "Linux/Usermode Kernel Configuration" | 22 | mainmenu "Linux/Usermode Kernel Configuration" |
20 | 23 | ||
21 | config ISA | 24 | config ISA |
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index 7c99d518e49e..7fbb44bea37f 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig | |||
@@ -46,6 +46,9 @@ config ARCH_HAS_ILOG2_U64 | |||
46 | bool | 46 | bool |
47 | default n | 47 | default n |
48 | 48 | ||
49 | config NO_IOPORT | ||
50 | def_bool y | ||
51 | |||
49 | source "init/Kconfig" | 52 | source "init/Kconfig" |
50 | 53 | ||
51 | menu "Processor type and features" | 54 | menu "Processor type and features" |