Re: [PATCH] sort the devres mess out

From: Jeff Garzik
Date: Sun Feb 11 2007 - 10:50:00 EST


Al Viro wrote:
* 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@xxxxxxxxxxxxxxxxxx>
---
arch/arm/Kconfig | 5 +
arch/cris/Kconfig | 3 +
arch/h8300/Kconfig | 3 +
arch/h8300/kernel/Makefile | 4 +-
arch/m32r/Kconfig | 3 +
arch/m68k/Kconfig | 3 +
arch/m68k/kernel/Makefile | 4 +-
arch/m68knommu/Kconfig | 3 +
arch/s390/Kconfig | 3 +
arch/sparc/kernel/Makefile | 4 +-
arch/um/Kconfig | 3 +
arch/xtensa/Kconfig | 3 +
include/linux/io.h | 6 -
include/linux/pci.h | 5 +
kernel/irq/Makefile | 2 +-
kernel/irq/devres.c | 88 +++++++++++++
kernel/irq/manage.c | 86 -------------
lib/Kconfig | 9 +-
lib/Makefile | 5 +-
lib/devres.c | 300 ++++++++++++++++++++++++++++++++++++++++++++
lib/iomap.c | 296 -------------------------------------------
21 files changed, 442 insertions(+), 396 deletions(-)
create mode 100644 kernel/irq/devres.c
create mode 100644 lib/devres.c

ACK


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/