MMC: card test driver should not be builtin with other card support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: ben
Date: Friday, June 20, 2008 - 3:58 am

The mmc test driver and mmc block driver will attempt to bind
to any card present in the system, which means only one of these
drivers will end up with the card. If either one of these is selected
as builtin, ensure the other does not get built.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>

Index: linux-2.6.26-rc6-sdmmc3/drivers/mmc/card/Kconfig
===================================================================
--- linux-2.6.26-rc6-sdmmc3.orig/drivers/mmc/card/Kconfig	2008-06-20 11:53:08.000000000 +0100
+++ linux-2.6.26-rc6-sdmmc3/drivers/mmc/card/Kconfig	2008-06-20 11:53:29.000000000 +0100
@@ -6,7 +6,7 @@ comment "MMC/SD Card Drivers"
 
 config MMC_BLOCK
 	tristate "MMC block device driver"
-	depends on BLOCK
+	depends on BLOCK && MMC_TEST != y
 	default y
 	help
 	  Say Y here to enable the MMC block device driver support.
@@ -42,6 +42,7 @@ config SDIO_UART
 config MMC_TEST
 	tristate "MMC host test driver"
 	default n
+	depends on MMC_BLOCK != y
 	help
 	  Development driver that performs a series of reads and writes
 	  to a memory card in order to expose certain well known bugs

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
MMC: card test driver should not be builtin with other car ..., ben, (Fri Jun 20, 3:58 am)