From: yangkai Date: Fri, 20 May 2011 06:41:35 +0000 (+0800) Subject: add DWC_DEVICE_ONLY MACRO X-Git-Tag: firefly_0821_release~10307 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e321972eac2c1bb3af3ca5985669ef571756ff15;p=firefly-linux-kernel-4.4.55.git add DWC_DEVICE_ONLY MACRO --- diff --git a/drivers/usb/dwc_otg/Makefile b/drivers/usb/dwc_otg/Makefile index e60402dff923..6da2668e6b2a 100755 --- a/drivers/usb/dwc_otg/Makefile +++ b/drivers/usb/dwc_otg/Makefile @@ -13,6 +13,9 @@ ifeq ($(CONFIG_DWC_OTG_HOST_ONLY),y) EXTRA_CFLAGS += -DDWC_HOST_ONLY endif +ifneq ($(CONFIG_USB),y) +EXTRA_CFLAGS += -DDWC_DEVICE_ONLY +endif #ifeq ($(CONFIG_DWC_OTG_DEVICE_ONLY),y) #EXTRA_CFLAGS += -DDWC_DEVICE_ONLY #endif