phy: tegra: Select USB_PHY
authorCorentin Labbe <clabbe@baylibre.com>
Wed, 18 Mar 2020 15:23:33 +0000 (15:23 +0000)
committerThierry Reding <treding@nvidia.com>
Thu, 19 Mar 2020 13:17:06 +0000 (14:17 +0100)
commit6835bdc99580110243ee928cc487b831281399f9
treef0431c7e0e17607c3ced1b74c0974f7ad2da53ad
parente78fdbad1e902f422a7a0452cce8378d2652f219
phy: tegra: Select USB_PHY

I have hit the following build error:

armv7a-hardfloat-linux-gnueabi-ld: drivers/phy/tegra/xusb.o: in function `tegra_xusb_port_unregister':
xusb.c:(.text+0x2ac): undefined reference to `usb_remove_phy'
armv7a-hardfloat-linux-gnueabi-ld: drivers/phy/tegra/xusb.o: in function `tegra_xusb_setup_ports':
xusb.c:(.text+0xf30): undefined reference to `usb_add_phy_dev'

PHY_TEGRA_XUSB should select USB_PHY because it uses symbols defined in
the code enabled by that.

Fixes: 23babe30fb45d ("phy: tegra: xusb: Add usb-phy support")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/phy/tegra/Kconfig