USB: fix Kconfig logic for USB_UHCI_HCD
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 14 May 2013 17:54:12 +0000 (13:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 May 2013 17:41:39 +0000 (13:41 -0400)
commitccd9509a0b942f7a139f1adb741a746ef0220911
treec10f86ebb69b0cbeb44bf7724437793d23fcd8f1
parente4f47e3675e6f1f40906b785b934ce963e9f2eb3
USB: fix Kconfig logic for USB_UHCI_HCD

The Kconfig settings for uhci-hcd are too permissive; they allow the
driver to be built without any bus-glue modules configured
(USB_UHCI_HCD enabled, PCI disabled, SPARC_LEON disabled, ARCH_VT8500
enabled, and USB_UHCI_PLATFORM disabled).

This patch fixes the problem by rearranging the dependencies.  Now the
platform-dependent config options don't depend on USB_UHCI_HCD;
instead it depends on them.  Furthermore, there is no user-selectable
choice as to which glue modules will be built.  If USB_UHCI_HCD is
enabled then all applicable bus glues will be built.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/Kconfig