From e321972eac2c1bb3af3ca5985669ef571756ff15 Mon Sep 17 00:00:00 2001 From: yangkai Date: Fri, 20 May 2011 14:41:35 +0800 Subject: [PATCH] add DWC_DEVICE_ONLY MACRO --- drivers/usb/dwc_otg/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.34.1