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>
This commit is contained in:
parent
0f1078d5cc
commit
88628367db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue