[PATCH] phy: cpcap-usb: only build if CPCAP is enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



CPCAP phy can only be used with CPCAP MFD, so let's add
a dependency. There is no need to ask for it on e.g. x86
systems. Since nobody complained about compilation errors
in a couple of weeks it is safe to ignore the dependency
for COMPILE_TEST, though.

Also enable CPCAP phy support by default if the main
CPCAP driver is enabled.

Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxxxx>
---
 drivers/phy/motorola/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/phy/motorola/Kconfig b/drivers/phy/motorola/Kconfig
index 6bb7d6bdf1bf..c718b971ee2c 100644
--- a/drivers/phy/motorola/Kconfig
+++ b/drivers/phy/motorola/Kconfig
@@ -5,6 +5,8 @@ config PHY_CPCAP_USB
 	tristate "CPCAP PMIC USB PHY driver"
 	depends on USB_SUPPORT && IIO
 	depends on USB_MUSB_HDRC || USB_MUSB_HDRC=n
+	depends on MFD_CPCAP || COMPILE_TEST
+	default MFD_CPCAP
 	select GENERIC_PHY
 	select USB_PHY
 	help
-- 
2.13.2

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux