phy: tegra: select USB_COMMON
authorArnd Bergmann <arnd@arndb.de>
Wed, 30 May 2018 21:33:50 +0000 (23:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 May 2018 10:50:40 +0000 (12:50 +0200)
A built-in PHY driver cannot link against modular USB core code:

drivers/usb/phy/phy-tegra-usb.o: In function `tegra_usb_phy_probe':
phy-tegra-usb.c:(.text+0x6bc): undefined reference to `usb_get_dr_mode'

This uses a 'select' statement in Kconfig like we have for other such
PHY drivers.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/Kconfig

index b9b0a44be67995b0a7c64bfb96b480d09df0312a..d7312eed60882a7c356b0d6736c5df836d2dbaf0 100644 (file)
@@ -162,6 +162,7 @@ config USB_MXS_PHY
 config USB_TEGRA_PHY
        tristate "NVIDIA Tegra USB PHY Driver"
        depends on ARCH_TEGRA
+       select USB_COMMON
        select USB_PHY
        select USB_ULPI
        help