From: Roger Quadros Date: Fri, 13 May 2016 12:17:52 +0000 (+0300) Subject: usb: dwc3: Makefile: Don't build gadget code if USB_GADGET is disabled X-Git-Tag: v2016.07-rc1~143 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3ac8d1ee12dcc59942c22f76ccce5537fc3a198a;p=u-boot usb: dwc3: Makefile: Don't build gadget code if USB_GADGET is disabled It is pointless to build gadget driver if USB_GADGET is disabled. Signed-off-by: Roger Quadros Acked-by: Marek Vasut --- diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile index 0cd73020a7..2964bae0d8 100644 --- a/drivers/usb/dwc3/Makefile +++ b/drivers/usb/dwc3/Makefile @@ -6,7 +6,7 @@ obj-$(CONFIG_USB_DWC3) += dwc3.o dwc3-y := core.o -dwc3-y += gadget.o ep0.o +obj-$(CONFIG_USB_DWC3_GADGET) += gadget.o ep0.o obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o obj-$(CONFIG_USB_DWC3_PHY_OMAP) += ti_usb_phy.o