imx6: merge all gateworks boards into one profile
[openwrt/openwrt.git] / target / linux / imx6 / patches-3.10 / 0002-usb-chipidea-fix-the-build-error-with-randconfig.patch
1 From: Peter Chen <peter.chen@freescale.com>
2 Subject: [PATCH] usb: chipidea: fix the build error with randconfig
3
4 Using below configs, the compile will have error:
5 ERROR: "ehci_init_driver" undefined!
6
7 .config:
8 CONFIG_USB_CHIPIDEA=m
9 CONFIG_USB_CHIPIDEA_HOST=y
10 CONFIG_USB_CHIPIDEA_DEBUG=y
11
12 The reason is chipidea host uses symbol from ehci, but ehci
13 is not compiled. Let the chipidea host depend on
14 ehci even it is built as module.
15
16 Signed-off-by: Peter Chen <peter.chen@freescale.com>
17 Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 ---
20 drivers/usb/chipidea/Kconfig | 4 ++--
21 1 file changed, 2 insertions(+), 2 deletions(-)
22
23 --- a/drivers/usb/chipidea/Kconfig
24 +++ b/drivers/usb/chipidea/Kconfig
25 @@ -12,7 +12,7 @@ if USB_CHIPIDEA
26
27 config USB_CHIPIDEA_UDC
28 bool "ChipIdea device controller"
29 - depends on USB_GADGET=y || USB_CHIPIDEA=m
30 + depends on USB_GADGET=y || (USB_CHIPIDEA=m && USB_GADGET=m)
31 help
32 Say Y here to enable device controller functionality of the
33 ChipIdea driver.
34 @@ -20,7 +20,7 @@ config USB_CHIPIDEA_UDC
35 config USB_CHIPIDEA_HOST
36 bool "ChipIdea host controller"
37 depends on USB=y
38 - depends on USB_EHCI_HCD=y || USB_CHIPIDEA=m
39 + depends on USB_EHCI_HCD=y || (USB_CHIPIDEA=m && USB_EHCI_HCD=m)
40 select USB_EHCI_ROOT_HUB_TT
41 help
42 Say Y here to enable host controller functionality of the