linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] phy: cpcap-usb: only build if CPCAP is enabled
@ 2017-07-12 15:30 Sebastian Reichel
  2017-07-13  6:23 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Reichel @ 2017-07-12 15:30 UTC (permalink / raw)
  To: Sebastian Reichel, Kishon Vijay Abraham I, Tony Lindgren
  Cc: linux-kernel, linux-omap, Sebastian Reichel

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@collabora.co.uk>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-13  6:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-12 15:30 [PATCH] phy: cpcap-usb: only build if CPCAP is enabled Sebastian Reichel
2017-07-13  6:23 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).