Introduce CONFIG_GENERIC_IO
authorRichard Weinberger <richard@nod.at>
Tue, 7 Feb 2012 00:22:46 +0000 (01:22 +0100)
committerRichard Weinberger <richard@nod.at>
Sat, 24 Mar 2012 23:29:56 +0000 (00:29 +0100)
There are situations where CONFIG_HAS_IOMEM is too restrictive.
For example CONFIG_MTD_NAND_NANDSIM depends on CONFIG_HAS_IOMEM
but it works perfectly fine if an architecture without io memory
just includes asm-generic/io.h or implements everything defined in it.
UML is such a corner case.

Signed-off-by: Richard Weinberger <richard@nod.at>

lib/Kconfig

index 028aba9..ed7ca8e 100644 (file)
@@ -29,6 +29,10 @@ config GENERIC_IOMAP
        bool
        select GENERIC_PCI_IOMAP
 
+config GENERIC_IO
+       boolean
+       default n
+
 config CRC_CCITT
        tristate "CRC-CCITT functions"
        help
@@ -224,6 +228,7 @@ config BTREE
 config HAS_IOMEM
        boolean
        depends on !NO_IOMEM
+       select GENERIC_IO
        default y
 
 config HAS_IOPORT