Commit 5ea81769 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2835fdfa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -29,6 +29,10 @@ config MMU
	bool
	default y

config NO_IOPORT
	bool
	default n

config EISA
	bool
	---help---
@@ -298,6 +302,7 @@ config ARCH_RPC
	select TIMER_ACORN
	select ARCH_MAY_HAVE_PC_FDC
	select ISA_DMA_API
	select NO_IOPORT
	help
	  On the Acorn Risc-PC, Linux can support the internal IDE disk and
	  CD-ROM interface, serial and parallel port, and the floppy drive.
+3 −0
Original line number Diff line number Diff line
@@ -44,6 +44,9 @@ config IRQ_PER_CPU
	bool
	default y

config NO_IOPORT
	def_bool y

config CRIS
	bool
	default y
+3 −0
Original line number Diff line number Diff line
@@ -57,6 +57,9 @@ config TIME_LOW_RES
	bool
	default y

config NO_IOPORT
	def_bool y

config ISA
	bool
	default y
+3 −1
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@ extra-y := vmlinux.lds

obj-y := process.o traps.o ptrace.o ints.o \
	 sys_h8300.o time.o semaphore.o signal.o \
         setup.o gpio.o init_task.o syscalls.o
         setup.o gpio.o init_task.o syscalls.o devres.o

devres-y = ../../../kernel/irq/devres.o

obj-$(CONFIG_MODULES) += module.o h8300_ksyms.o 
+3 −0
Original line number Diff line number Diff line
@@ -28,6 +28,9 @@ config GENERIC_IRQ_PROBE
	bool
	default y

config NO_IOPORT
	def_bool y

source "init/Kconfig"


Loading