From 0f1078d5cc9ce495ca44ed8d79bd6bd856954c5c Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Tue, 25 Nov 2014 18:02:50 +0100 Subject: usb: host: only activate Efika MX ULPI workaround if ULPI is selected Fixes a build failure with disabled ULPI support. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- 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 d2e1296796..133561659c 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 /* * Add support for setting CHRGVBUS to workaround a hardware bug on efika mx/sb -- cgit v1.2.3