[PATCH] phy: cpcap-usb: Fix build by adding a dependency to CONFIG_IIO
From: Tony Lindgren
Date: Sat Mar 25 2017 - 18:04:37 EST
We need the ADC output provided by IIO to detect VBUS level.
Otherwise we can get:
drivers/built-in.o: In function `cpcap_usb_detect':
phy-cpcap-usb.c:(.text+0x18ad): undefined reference to
`iio_read_channel_processed'
drivers/built-in.o: In function `cpcap_usb_phy_probe':
phy-cpcap-usb.c:(.text+0x1c5e): undefined reference to
`devm_iio_channel_get'
phy-cpcap-usb.c:(.text+0x1c92): undefined reference to`iio_get_channel_type'
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx>
---
drivers/phy/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -49,7 +49,7 @@ config PHY_BERLIN_SATA
config PHY_CPCAP_USB
tristate "CPCAP USB PHY driver"
- depends on USB_SUPPORT
+ depends on USB_SUPPORT && IIO
select GENERIC_PHY
select USB_PHY
help
--
2.12.1