diff mbox series

[-next] phy: tegra: Add missing USB_SUPPORT dependency

Message ID 20200330034646.30572-1-yuehaibing@huawei.com
State New
Headers show
Series [-next] phy: tegra: Add missing USB_SUPPORT dependency | expand

Commit Message

Yuehaibing March 30, 2020, 3:46 a.m. UTC
When USB_SUPPORT is not set, we got this warnings:

WARNING: unmet direct dependencies detected for USB_PHY
  Depends on [n]: USB_SUPPORT [=n]
  Selected by [y]:
  - PHY_TEGRA_XUSB [=y] && ARCH_TEGRA [=y]

WARNING: unmet direct dependencies detected for USB_CONN_GPIO
  Depends on [n]: USB_SUPPORT [=n] && GPIOLIB [=y]
  Selected by [y]:
  - PHY_TEGRA_XUSB [=y] && ARCH_TEGRA [=y]

Fix by adding USB_SUPPORT as a dependency.

Fixes: 23babe30fb45d ("phy: tegra: xusb: Add usb-phy support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/phy/tegra/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/phy/tegra/Kconfig b/drivers/phy/tegra/Kconfig
index a208aca4ba7b..bb86d09a173b 100644
--- a/drivers/phy/tegra/Kconfig
+++ b/drivers/phy/tegra/Kconfig
@@ -2,6 +2,7 @@ 
 config PHY_TEGRA_XUSB
 	tristate "NVIDIA Tegra XUSB pad controller driver"
 	depends on ARCH_TEGRA
+	depends on USB_SUPPORT
 	select USB_CONN_GPIO
 	select USB_PHY
 	help