Re: [PATCH 1/4] usb: musb: only build musb_barebox if host is enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 27, 2014 at 04:54:17PM +0100, Lucas Stach wrote:
> 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@xxxxxxxxxxxxxx>

Applied all, thanks

Sascha

> ---
>  drivers/usb/musb/Makefile | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/musb/Makefile b/drivers/usb/musb/Makefile
> index 364a43fecb62..9f9c21030047 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
> -- 
> 2.1.3
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux