powerpc: Fix build failure on 44x
authorPranith Kumar <bobby.prani@gmail.com>
Thu, 21 Aug 2014 13:04:31 +0000 (09:04 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 Sep 2014 13:14:54 +0000 (23:14 +1000)
Fix the following build failure

drivers/built-in.o: In function `nhi_init':
nhi.c:(.init.text+0x63390): undefined reference to `ehci_init_driver'

by adding a dependency on USB_EHCI_HCD which supplies the ehci_init_driver().

Also we need to depend on USB_OHCI_HCD similarly

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Acked-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/44x/Kconfig

index 4d88f6a19058cc253dcd885eec86e077f7441295..3e7deb2aaf5a63664d988c08c3017370880230d9 100644 (file)
@@ -216,8 +216,8 @@ config AKEBONO
        select IBM_EMAC_EMAC4
        select IBM_EMAC_RGMII_WOL
        select USB
-       select USB_OHCI_HCD_PLATFORM
-       select USB_EHCI_HCD_PLATFORM
+       select USB_OHCI_HCD_PLATFORM if USB_OHCI_HCD
+       select USB_EHCI_HCD_PLATFORM if USB_EHCI_HCD
        select MMC_SDHCI
        select MMC_SDHCI_PLTFM
        select MMC_SDHCI_OF_476GTR