Browse Source

USB: enclose USB_XHCI_HCD related symbols within a if USB_XHCI_HCD block

This patch encloses all symbols depending on USB_XHCI_HCD within an if
USB_XHCI_HCD / endif block.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Florian Fainelli 12 years ago
parent
commit
0fcb998986
1 changed files with 4 additions and 2 deletions
  1. 4 2
      drivers/usb/host/Kconfig

+ 4 - 2
drivers/usb/host/Kconfig

@@ -25,13 +25,13 @@ config USB_XHCI_HCD
 	  To compile this driver as a module, choose M here: the
 	  To compile this driver as a module, choose M here: the
 	  module will be called xhci-hcd.
 	  module will be called xhci-hcd.
 
 
+if USB_XHCI_HCD
+
 config USB_XHCI_PLATFORM
 config USB_XHCI_PLATFORM
 	tristate
 	tristate
-	depends on USB_XHCI_HCD
 
 
 config USB_XHCI_HCD_DEBUGGING
 config USB_XHCI_HCD_DEBUGGING
 	bool "Debugging for the xHCI host controller"
 	bool "Debugging for the xHCI host controller"
-	depends on USB_XHCI_HCD
 	---help---
 	---help---
 	  Say 'Y' to turn on debugging for the xHCI host controller driver.
 	  Say 'Y' to turn on debugging for the xHCI host controller driver.
 	  This will spew debugging output, even in interrupt context.
 	  This will spew debugging output, even in interrupt context.
@@ -39,6 +39,8 @@ config USB_XHCI_HCD_DEBUGGING
 
 
 	  If unsure, say N.
 	  If unsure, say N.
 
 
+endif # USB_XHCI_HCD
+
 config USB_EHCI_HCD
 config USB_EHCI_HCD
 	tristate "EHCI HCD (USB 2.0) support"
 	tristate "EHCI HCD (USB 2.0) support"
 	depends on USB_ARCH_HAS_EHCI
 	depends on USB_ARCH_HAS_EHCI