staging: gdm72xx: WIMAX_GDM72XX_USB_PM should depend on USB_SUSPEND
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 16 May 2012 19:47:40 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2012 20:17:52 +0000 (13:17 -0700)
Use Kconfig logic instead of a rude #error in the driver source,
which breaks m68k-allmodconfig.
Also remove the "default n", as that's the default.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Sage Ahn <syahn@gctsemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/Kconfig
drivers/staging/gdm72xx/gdm_usb.c

index 5c37cba1148685202204b737fe7131e020484458..fc584271325c678d8d001cd68cf3db8cfb18dcc3 100644 (file)
@@ -38,7 +38,7 @@ if WIMAX_GDM72XX_USB
 
 config WIMAX_GDM72XX_USB_PM
        bool "Enable power managerment support"
-       default n
+       depends on USB_SUSPEND
 
 endif # WIMAX_GDM72XX_USB
 
index 004786bae577d422b5dea92585cb1e6679f9f650..f60e890c65c836529f4b36b2cbad94a13ccd7c9e 100644 (file)
 #include <linux/usb.h>
 #include <asm/byteorder.h>
 
-#ifdef CONFIG_WIMAX_GDM72XX_USB_PM
-#ifndef CONFIG_USB_SUSPEND
-#error "USB host doesn't support USB Selective Suspend."
-#endif
-#endif
-
 #include "gdm_usb.h"
 #include "gdm_wimax.h"
 #include "usb_boot.h"