Skip to content

Commit

Permalink
staging: gdm72xx: WIMAX_GDM72XX_USB_PM should depend on USB_SUSPEND
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Greg Kroah-Hartman committed May 16, 2012
1 parent 00bf19f commit dd4f521
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/gdm72xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 0 additions & 6 deletions drivers/staging/gdm72xx/gdm_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
#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"
Expand Down

0 comments on commit dd4f521

Please sign in to comment.