usb: fix hcd h20ahb driver depends
authorAlex Shi <alex.shi@linaro.org>
Thu, 5 Jun 2014 06:58:06 +0000 (07:58 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 10 Jun 2014 13:55:08 +0000 (14:55 +0100)
USB_EHCI_HCD_SYNOPSYS is not only dependent on USB_EHCI_HCD, but
also on USB_PHY. Otherwise kernel build has the following error:

  LD      init/built-in.o
drivers/built-in.o: In function `ehci_hcd_h20ahb_probe':
:(.text+0xb9bb4): undefined reference to `usb_add_phy_dev'

Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/usb/host/Kconfig

index 191f91c..b88c11e 100644 (file)
@@ -160,7 +160,7 @@ config USB_EHCI_HCD_SPEAR
 
 config USB_EHCI_HCD_SYNOPSYS
        tristate "Support for Synopsys Host-AHB USB 2.0 controller"
-       depends on USB_EHCI_HCD
+       depends on USB_EHCI_HCD && USB_PHY
        ---help---
          Enable support for onchip USB controllers based on DesignWare USB 2.0
          Host-AHB Controller IP from Synopsys.