[patch 3/4] x86: only compile floppy driver if CONFIG_ISA_DMA_APIis enabled

From: David Rientjes
Date: Wed Jan 26 2011 - 22:15:03 EST


The generic floppy disk driver utilizies the interface provided by
CONFIG_ISA_DMA_API, specifically claim_dma_lock(), release_dma_lock(),
request_dma(), and free_dma(). Thus, there's a strict dependency on the
config option and the driver should only be loaded if the kernel supports
ISA-style DMA.

Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
---
arch/x86/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -139,7 +139,7 @@ config GENERIC_GPIO
bool

config ARCH_MAY_HAVE_PC_FDC
- def_bool y
+ def_bool ISA_DMA_API

config RWSEM_GENERIC_SPINLOCK
def_bool !X86_XADD
--
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/