Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d05c07c6 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Kishon Vijay Abraham I
Browse files

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: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 54fe3088
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,7 @@
config PHY_CPCAP_USB
config PHY_CPCAP_USB
	tristate "CPCAP PMIC USB PHY driver"
	tristate "CPCAP PMIC USB PHY driver"
	depends on USB_SUPPORT && IIO
	depends on USB_SUPPORT && IIO
	depends on USB_MUSB_HDRC || USB_MUSB_HDRC=n
	select GENERIC_PHY
	select GENERIC_PHY
	select USB_PHY
	select USB_PHY
	help
	help