summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2012-02-07 04:22:46 +0400
committerRichard Weinberger <richard@nod.at>2012-03-25 03:29:56 +0400
commit087fafd15204fb7a5df44b635ed3d3f4348f2d5e (patch)
tree92feb580b5d88150a17442fc833bc95294e8ee85
parent4c3ff74742b481eaf32d010d072b421c97fd8f08 (diff)
downloadlinux-087fafd15204fb7a5df44b635ed3d3f4348f2d5e.tar.xz
Introduce CONFIG_GENERIC_IO
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>
-rw-r--r--lib/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 028aba9e72af..ed7ca8ef4f9f 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -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