phy: cpcap-usb: add MUSB dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Jun 2017 10:16:40 +0000 (12:16 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 9 Jun 2017 12:09:39 +0000 (17:39 +0530)
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>
drivers/phy/motorola/Kconfig

index 91a46cffd6399e548b6c5152ede22940bd34a9c7..6bb7d6bdf1bf12cc958279d1fa48bfb9c3f605d8 100644 (file)
@@ -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