]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sfc: Fix dependency for SFC_MTD
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 20 Nov 2008 12:17:42 +0000 (04:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Nov 2008 12:17:42 +0000 (04:17 -0800)
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.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/Kconfig

index 3e25fb38f7392ac2aa97f2c20db68d4fc2cd6609..c535408ad6bef520262118f0283c0d004ee6cc56 100644 (file)
@@ -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.