summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2016-05-01 17:50:29 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-01 23:21:02 -0400
commit8ac0fba2da41620f4931a1007c71b0d4723eb02a (patch)
tree6d73238c9e25bd9bc118f68d2f72620e40d43e11
parent1f62ff34a90471d1b735bac2c79e894afc7c59bc (diff)
isa: Decouple X86_32 dependency from the ISA Kconfig option
The introduction of the ISA_BUS option blocks the compilation of ISA drivers on non-x86 platforms. The ISA_BUS configuration option should not be necessary if the X86_32 dependency can be decoupled from the ISA configuration option. This patch both removes the ISA_BUS configuration option entirely and removes the X86_32 dependency from the ISA configuration option. Acked-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/x86/Kconfig10
-rw-r--r--drivers/base/Makefile2
-rw-r--r--include/linux/isa.h2
3 files changed, 4 insertions, 10 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index a5977986f38b..280e5ebae2f5 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2472,16 +2472,8 @@ config ISA_DMA_API
2472 Enables ISA-style DMA support for devices requiring such controllers. 2472 Enables ISA-style DMA support for devices requiring such controllers.
2473 If unsure, say Y. 2473 If unsure, say Y.
2474 2474
2475config ISA_BUS
2476 bool "ISA bus support"
2477 help
2478 Enables ISA bus support for devices requiring such controllers.
2479
2480if X86_32
2481
2482config ISA 2475config ISA
2483 bool "ISA support" 2476 bool "ISA support"
2484 depends on ISA_BUS
2485 ---help--- 2477 ---help---
2486 Find out whether you have ISA slots on your motherboard. ISA is the 2478 Find out whether you have ISA slots on your motherboard. ISA is the
2487 name of a bus system, i.e. the way the CPU talks to the other stuff 2479 name of a bus system, i.e. the way the CPU talks to the other stuff
@@ -2489,6 +2481,8 @@ config ISA
2489 (MCA) or VESA. ISA is an older system, now being displaced by PCI; 2481 (MCA) or VESA. ISA is an older system, now being displaced by PCI;
2490 newer boards don't support it. If you have ISA, say Y, otherwise N. 2482 newer boards don't support it. If you have ISA, say Y, otherwise N.
2491 2483
2484if X86_32
2485
2492config EISA 2486config EISA
2493 bool "EISA support" 2487 bool "EISA support"
2494 depends on ISA 2488 depends on ISA
diff --git a/drivers/base/Makefile b/drivers/base/Makefile
index 4ebfb81cc7e9..6b2a84e7f2be 100644
--- a/drivers/base/Makefile
+++ b/drivers/base/Makefile
@@ -10,7 +10,7 @@ obj-$(CONFIG_DMA_CMA) += dma-contiguous.o
10obj-y += power/ 10obj-y += power/
11obj-$(CONFIG_HAS_DMA) += dma-mapping.o 11obj-$(CONFIG_HAS_DMA) += dma-mapping.o
12obj-$(CONFIG_HAVE_GENERIC_DMA_COHERENT) += dma-coherent.o 12obj-$(CONFIG_HAVE_GENERIC_DMA_COHERENT) += dma-coherent.o
13obj-$(CONFIG_ISA_BUS) += isa.o 13obj-$(CONFIG_ISA) += isa.o
14obj-$(CONFIG_FW_LOADER) += firmware_class.o 14obj-$(CONFIG_FW_LOADER) += firmware_class.o
15obj-$(CONFIG_NUMA) += node.o 15obj-$(CONFIG_NUMA) += node.o
16obj-$(CONFIG_MEMORY_HOTPLUG_SPARSE) += memory.o 16obj-$(CONFIG_MEMORY_HOTPLUG_SPARSE) += memory.o
diff --git a/include/linux/isa.h b/include/linux/isa.h
index 2a02862775eb..b0270e3814c8 100644
--- a/include/linux/isa.h
+++ b/include/linux/isa.h
@@ -22,7 +22,7 @@ struct isa_driver {
22 22
23#define to_isa_driver(x) container_of((x), struct isa_driver, driver) 23#define to_isa_driver(x) container_of((x), struct isa_driver, driver)
24 24
25#ifdef CONFIG_ISA_BUS 25#ifdef CONFIG_ISA
26int isa_register_driver(struct isa_driver *, unsigned int); 26int isa_register_driver(struct isa_driver *, unsigned int);
27void isa_unregister_driver(struct isa_driver *); 27void isa_unregister_driver(struct isa_driver *);
28#else 28#else