瀏覽代碼

usb: musb: cleanup kconfig

The whole thing depends on USB_MUSB_HDRC, just add an 'if'.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Contreras 13 年之前
父節點
當前提交
c6bde9b5ae
共有 1 個文件被更改,包括 4 次插入6 次删除
  1. 4 6
      drivers/usb/musb/Kconfig

+ 4 - 6
drivers/usb/musb/Kconfig

@@ -30,9 +30,10 @@ config USB_MUSB_HDRC
 	  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 "musb-hdrc".
 	  module will be called "musb-hdrc".
 
 
+if USB_MUSB_HDRC
+
 choice
 choice
 	prompt "Platform Glue Layer"
 	prompt "Platform Glue Layer"
-	depends on USB_MUSB_HDRC
 
 
 config USB_MUSB_DAVINCI
 config USB_MUSB_DAVINCI
 	tristate "DaVinci"
 	tristate "DaVinci"
@@ -77,28 +78,24 @@ choice
 
 
 config USB_UX500_DMA
 config USB_UX500_DMA
 	bool 'ST Ericsson U8500 and U5500'
 	bool 'ST Ericsson U8500 and U5500'
-	depends on USB_MUSB_HDRC
 	depends on USB_MUSB_UX500
 	depends on USB_MUSB_UX500
 	help
 	help
 	  Enable DMA transfers on UX500 platforms.
 	  Enable DMA transfers on UX500 platforms.
 
 
 config USB_INVENTRA_DMA
 config USB_INVENTRA_DMA
 	bool 'Inventra'
 	bool 'Inventra'
-	depends on USB_MUSB_HDRC
 	depends on USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
 	depends on USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
 	help
 	help
 	  Enable DMA transfers using Mentor's engine.
 	  Enable DMA transfers using Mentor's engine.
 
 
 config USB_TI_CPPI_DMA
 config USB_TI_CPPI_DMA
 	bool 'TI CPPI (Davinci)'
 	bool 'TI CPPI (Davinci)'
-	depends on USB_MUSB_HDRC
 	depends on USB_MUSB_DAVINCI
 	depends on USB_MUSB_DAVINCI
 	help
 	help
 	  Enable DMA transfers when TI CPPI DMA is available.
 	  Enable DMA transfers when TI CPPI DMA is available.
 
 
 config USB_TUSB_OMAP_DMA
 config USB_TUSB_OMAP_DMA
 	bool 'TUSB 6010'
 	bool 'TUSB 6010'
-	depends on USB_MUSB_HDRC
 	depends on USB_MUSB_TUSB6010
 	depends on USB_MUSB_TUSB6010
 	depends on ARCH_OMAP
 	depends on ARCH_OMAP
 	help
 	help
@@ -106,7 +103,6 @@ config USB_TUSB_OMAP_DMA
 
 
 config MUSB_PIO_ONLY
 config MUSB_PIO_ONLY
 	bool 'Disable DMA (always use PIO)'
 	bool 'Disable DMA (always use PIO)'
-	depends on USB_MUSB_HDRC
 	help
 	help
 	  All data is copied between memory and FIFO by the CPU.
 	  All data is copied between memory and FIFO by the CPU.
 	  DMA controllers are ignored.
 	  DMA controllers are ignored.
@@ -117,3 +113,5 @@ config MUSB_PIO_ONLY
 	  parameter.
 	  parameter.
 
 
 endchoice
 endchoice
+
+endif # USB_MUSB_HDRC