Patchwork sfc: Fix dependency for SFC_MTD

login
register
mail settings
Submitter Ben Hutchings
Date Nov. 19, 2008, 8:48 p.m.
Message ID <20081119204850.GF8240@solarflare.com>
Download mbox | patch
Permalink /patch/9633/
State Superseded
Delegated to: David Miller
Headers show

Comments

Ben Hutchings - Nov. 19, 2008, 8:48 p.m.
Randy Dunlap found that SFC_MTD was selected when sfc was built-in and
the MTD core was a module.  Don't allow that combination.
---
 drivers/net/sfc/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/sfc/Kconfig b/drivers/net/sfc/Kconfig
index 3e25fb3..c535408 100644
--- a/drivers/net/sfc/Kconfig
+++ b/drivers/net/sfc/Kconfig
@@ -14,7 +14,7 @@  config SFC
 	  will be called sfc.
 config SFC_MTD
 	bool "Solarflare Solarstorm SFC4000 flash MTD support"
-	depends on SFC && MTD
+	depends on SFC && MTD && !(SFC=y && MTD=m)
 	default y
 	help
 	  This exposes the on-board flash memory as an MTD device (e.g.