[PATCH v2 5/5] usb: host: only activate Efika MX ULPI workaround if ULPI is selected

Lucas Stach l.stach at pengutronix.de
Tue Nov 25 09:02:50 PST 2014


Fixes a build failure with disabled ULPI support.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 drivers/usb/host/ehci-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index d2e129679601..133561659c37 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -437,7 +437,7 @@ fail:
 	return -1;
 }
 
-#ifdef CONFIG_MACH_EFIKA_MX_SMARTBOOK
+#if defined(CONFIG_MACH_EFIKA_MX_SMARTBOOK) && defined(CONFIG_USB_ULPI)
 #include <usb/ulpi.h>
 /*
  * Add support for setting CHRGVBUS to workaround a hardware bug on efika mx/sb
-- 
2.1.3




More information about the barebox mailing list