]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: gdm72xx: WIMAX_GDM72XX should depend on either USB or MMC
authorBen Chan <benchan@chromium.org>
Tue, 4 Jun 2013 05:55:38 +0000 (22:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jun 2013 22:31:15 +0000 (15:31 -0700)
The gdm72xx driver needs to have either the USB or SDIO implementation
enabled to provide useful functionalities, so the driver should depend
on either USB or MMC. This patch makes WIMAX_GDM72XX depend on either
USB or MMC.

Also, WIMAX_GDM72XX needs to be built as a module if its dependent
interface, either USB or MMC, is built as a module. This patch enforces
that in the WIMAX_GDM72XX_USB and WIMAX_GDM72XX_SDIO dependency.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Ben Chan <benchan@chromium.org>
Cc: Sage Ahn <syahn@gctsemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/Kconfig

index 69059138de4ab334b96f44b63599be2ddceed7e9..dd47bd1fb3ce0b6e50304d1e27dbbc0212457249 100644 (file)
@@ -4,7 +4,7 @@
 
 menuconfig WIMAX_GDM72XX
        tristate "GCT GDM72xx WiMAX support"
-       depends on NET
+       depends on NET && (USB || MMC)
        help
          Support for the GCT GDM72xx WiMAX chip
 
@@ -27,11 +27,11 @@ choice
 
 config WIMAX_GDM72XX_USB
        bool "USB interface"
-       depends on USB
+       depends on (USB = y || USB = WIMAX_GDM72XX)
 
 config WIMAX_GDM72XX_SDIO
        bool "SDIO interface"
-       depends on MMC
+       depends on (MMC = y || MMC = WIMAX_GDM72XX)
 
 endchoice