[PATCH 10/10] musb: cleanup kconfig

From: Felipe Contreras
Date: Mon Dec 19 2011 - 19:44:19 EST


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

Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>
---
drivers/usb/musb/Kconfig | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
index b0a46e4..0844b8f 100644
--- a/drivers/usb/musb/Kconfig
+++ b/drivers/usb/musb/Kconfig
@@ -31,9 +31,10 @@ config USB_MUSB_HDRC
To compile this driver as a module, choose M here; the
module will be called "musb-hdrc".

+if USB_MUSB_HDRC
+
choice
prompt "Platform Glue Layer"
- depends on USB_MUSB_HDRC

config USB_MUSB_DAVINCI
tristate "DaVinci"
@@ -67,7 +68,6 @@ endchoice

config MUSB_PIO_ONLY
bool 'Disable DMA (always use PIO)'
- depends on USB_MUSB_HDRC
default USB_MUSB_TUSB6010 || USB_MUSB_DA8XX || USB_MUSB_AM35X
help
All data is copied between memory and FIFO by the CPU.
@@ -80,30 +80,32 @@ config MUSB_PIO_ONLY

config USB_UX500_DMA
bool
- depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
+ depends on !MUSB_PIO_ONLY
default USB_MUSB_UX500
help
Enable DMA transfers on UX500 platforms.

config USB_INVENTRA_DMA
bool
- depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
+ depends on !MUSB_PIO_ONLY
default USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
help
Enable DMA transfers using Mentor's engine.

config USB_TI_CPPI_DMA
bool
- depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
+ depends on !MUSB_PIO_ONLY
default USB_MUSB_DAVINCI
help
Enable DMA transfers when TI CPPI DMA is available.

config USB_TUSB_OMAP_DMA
bool
- depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
+ depends on !MUSB_PIO_ONLY
depends on USB_MUSB_TUSB6010
depends on ARCH_OMAP
default y
help
Enable DMA transfers on TUSB 6010 when OMAP DMA is available.
+
+endif # USB_MUSB_HDRC
--
1.7.8.rc1.14.g248db

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/