summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-06-09 12:16:40 +0200
committerKishon Vijay Abraham I <kishon@ti.com>2017-06-09 17:39:39 +0530
commitd05c07c6fadc73fa580d8be1f01cb372c18fd338 (patch)
tree878c79ac773ab9f8a52c4bf7be8768568ea6c2ca /drivers/phy
parent54fe30888901dd14a901bd3ad1a6f5d3c4ccd4a9 (diff)
downloadop-kernel-dev-d05c07c6fadc73fa580d8be1f01cb372c18fd338.zip
op-kernel-dev-d05c07c6fadc73fa580d8be1f01cb372c18fd338.tar.gz
phy: cpcap-usb: add MUSB dependency
When MUSB is a loadable module, we get a link error for a built-in CPCAP driver: drivers/phy/built-in.o: In function `cpcap_usb_phy_remove': phy-cpcap-usb.c:(.text+0xed9): undefined reference to `musb_mailbox' This adds a Kconfig dependency to prevent this broken configuration, enforcing that CPCAP can only be a module when MUSB is also a module. Fixes: 68a1f7c9d470 ("phy: cpcap-usb: Add CPCAP PMIC USB support") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/motorola/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/motorola/Kconfig b/drivers/phy/motorola/Kconfig
index 91a46cf..6bb7d6b 100644
--- a/drivers/phy/motorola/Kconfig
+++ b/drivers/phy/motorola/Kconfig
@@ -4,6 +4,7 @@
config PHY_CPCAP_USB
tristate "CPCAP PMIC USB PHY driver"
depends on USB_SUPPORT && IIO
+ depends on USB_MUSB_HDRC || USB_MUSB_HDRC=n
select GENERIC_PHY
select USB_PHY
help
OpenPOWER on IntegriCloud