Greetings,

The USB_OTG config variable is defined in two places, drivers/usb/core/Kconfig
and drivers/usb/gadget/Kconfig.  The former defines it as a simple boolean,
while the later defines it as a choice.  This causes `make oldconfig` to
loop infinitely on the USB_OTG choice selection if CONFIG_USB_OTG does not
exist in the current kernel config file.  This fix moves the USB_OTG menu
entry in drivers/usb/gadget/Kconfig out of the choice block to resolve this
error case.


Signed-off-by: George G. Davis <[EMAIL PROTECTED]>
---

 drivers/usb/gadget/Kconfig |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)


Index: linux-2.6/drivers/usb/gadget/Kconfig
===================================================================
--- linux-2.6.orig/drivers/usb/gadget/Kconfig
+++ linux-2.6/drivers/usb/gadget/Kconfig
@@ -176,17 +176,6 @@ config USB_OMAP
        default USB_GADGET
        select USB_GADGET_SELECTED
 
-config USB_OTG
-       boolean "OTG Support"
-       depends on USB_GADGET_OMAP && ARCH_OMAP_OTG && USB_OHCI_HCD
-       help
-          The most notable feature of USB OTG is support for a
-          "Dual-Role" device, which can act as either a device
-          or a host.  The initial role choice can be changed
-          later, when two dual-role devices talk to each other.
-
-          Select this only if your OMAP board has a Mini-AB connector.
-
 config USB_GADGET_AT91
        boolean "AT91 USB Device Port"
        depends on ARCH_AT91RM9200
@@ -239,6 +228,17 @@ config USB_DUMMY_HCD
 
 endchoice
 
+config USB_OTG
+       boolean "OTG Support"
+       depends on USB_GADGET_OMAP && ARCH_OMAP_OTG && USB_OHCI_HCD
+       help
+          The most notable feature of USB OTG is support for a
+          "Dual-Role" device, which can act as either a device
+          or a host.  The initial role choice can be changed
+          later, when two dual-role devices talk to each other.
+
+          Select this only if your OMAP board has a Mini-AB connector.
+
 config USB_GADGET_DUALSPEED
        bool
        depends on USB_GADGET


Please apply.  TIA!

--
Regards,
George


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to