[PATCH -next] phy: phy-qcom-usb-hs needs EXTCON

From: Randy Dunlap
Date: Wed Feb 22 2017 - 13:44:43 EST


From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

Fix phy-qcom-usb-hs.c build when CONFIG_EXTCON=m.

Fixes these build errros:
drivers/built-in.o: In function `qcom_usb_hs_phy_power_off':
phy-qcom-usb-hs.c:(.text+0x2361): undefined reference to `extcon_unregister_notifier'
drivers/built-in.o: In function `qcom_usb_hs_phy_power_on':
phy-qcom-usb-hs.c:(.text+0x2456): undefined reference to `extcon_get_state'
phy-qcom-usb-hs.c:(.text+0x2477): undefined reference to `extcon_register_notifier'
drivers/built-in.o: In function `qcom_usb_hs_phy_probe':
phy-qcom-usb-hs.c:(.text+0x269e): undefined reference to `extcon_get_edev_by_phandle'

Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Kishon Vijay Abraham I <kishon@xxxxxx>
---
drivers/phy/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20170222.orig/drivers/phy/Kconfig
+++ linux-next-20170222/drivers/phy/Kconfig
@@ -448,7 +448,7 @@ config PHY_QCOM_UFS

config PHY_QCOM_USB_HS
tristate "Qualcomm USB HS PHY module"
- depends on USB_ULPI_BUS
+ depends on USB_ULPI_BUS && EXTCON
select GENERIC_PHY
help
Support for the USB high-speed ULPI compliant phy on Qualcomm