summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2016-05-13 12:17:52 (GMT)
committerTom Rini <trini@konsulko.com>2016-05-27 19:39:49 (GMT)
commit3ac8d1ee12dcc59942c22f76ccce5537fc3a198a (patch)
tree76d3d15c16a751242fbc29dfe827641b2bf5d335 /drivers/usb
parentbc6fc28b8604eddb527217b450d86d368cc25d13 (diff)
downloadu-boot-3ac8d1ee12dcc59942c22f76ccce5537fc3a198a.tar.xz
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 <rogerq@ti.com> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc3/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile
index 0cd7302..2964bae 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