summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2016-03-10 17:08:09 +0900
committerChanho Park <chanho61.park@samsung.com>2016-04-11 12:53:15 +0900
commit6add051e624e78fe186ab3df7e4d2b87957b4ea0 (patch)
tree58eb72c18fa987700834e1e2c4ee87c8ba779112
parenteef9d39ad7727839c66f9afb12f1bc17d5549dca (diff)
downloadu-boot-artik-6add051e624e78fe186ab3df7e4d2b87957b4ea0.tar.gz
u-boot-artik-6add051e624e78fe186ab3df7e4d2b87957b4ea0.tar.bz2
u-boot-artik-6add051e624e78fe186ab3df7e4d2b87957b4ea0.zip
usb: dwc3: uses #if defined instead of IS_ENABLED
This patch uses #if defined macro instead of IS_ENABLED because it's not supported in this u-boot. Change-Id: Ia351ebbb5213b94efaa421711555168ac462b860 Signed-off-by: Chanho Park <chanho61.park@samsung.com>
-rw-r--r--drivers/usb/dwc3/core.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index ab3c94e51..5e4648185 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -689,10 +689,11 @@ int dwc3_uboot_init(struct dwc3_device *dwc3_dev)
return -ENOMEM;
}
- if (IS_ENABLED(CONFIG_USB_DWC3_HOST))
- dwc->dr_mode = USB_DR_MODE_HOST;
- else if (IS_ENABLED(CONFIG_USB_DWC3_GADGET))
- dwc->dr_mode = USB_DR_MODE_PERIPHERAL;
+#if defined(CONFIG_USB_DWC3_HOST)
+ dwc->dr_mode = USB_DR_MODE_HOST;
+#elif defined(CONFIG_USB_DWC3_GADGET)
+ dwc->dr_mode = USB_DR_MODE_PERIPHERAL;
+#endif
if (dwc->dr_mode == USB_DR_MODE_UNKNOWN)
dwc->dr_mode = USB_DR_MODE_OTG;