summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2014-11-27 16:54:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-27 17:12:39 +0100
commit88628367db62e44634c1e51dd037ebbbdbb396eb (patch)
tree15258e89a901e3a5b3bf66c824a110136c674277
parent0f1078d5cc9ce495ca44ed8d79bd6bd856954c5c (diff)
downloadbarebox-88628367db62e44634c1e51dd037ebbbdbb396eb.tar.gz
barebox-88628367db62e44634c1e51dd037ebbbdbb396eb.tar.xz
usb: musb: only build musb_barebox if host is enabled
musb_barebox.c contains code that is only ever used if CONFIG_MUSB_HOST is set. Building it uncoditionally breaks the build depending on the link order. Fixes: drivers/usb/musb/musb_barebox.c:64: undefined reference to `musb_urb_enqueue' Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/usb/musb/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/musb/Makefile b/drivers/usb/musb/Makefile
index 364a43fecb..9f9c210300 100644
--- a/drivers/usb/musb/Makefile
+++ b/drivers/usb/musb/Makefile
@@ -2,9 +2,9 @@
# for USB OTG silicon based on Mentor Graphics INVENTRA designs
#
-obj-y += musb_core.o musb_barebox.o
+obj-y += musb_core.o
-obj-$(CONFIG_USB_MUSB_HOST) += musb_host.o
+obj-$(CONFIG_USB_MUSB_HOST) += musb_host.o musb_barebox.o
obj-$(CONFIG_USB_MUSB_GADGET) += musb_gadget.o musb_gadget_ep0.o
obj-$(CONFIG_USB_MUSB_DSPS) += musb_dsps.o