Dear Benoît Thébaudeau, > A custom board_ehci_hcd_init() may be unneeded, so add a weak default > implementation doing nothing. > > Signed-off-by: Benoît Thébaudeau <benoit.thebaud...@advansee.com> > Cc: Marek Vasut <ma...@denx.de> > Cc: Stefano Babic <sba...@denx.de> > --- > .../drivers/usb/host/ehci-mx5.c | 8 > ++++++++ 1 file changed, 8 insertions(+) > > diff --git u-boot-usb-76454b2.orig/drivers/usb/host/ehci-mx5.c > u-boot-usb-76454b2/drivers/usb/host/ehci-mx5.c index 52aeae5..e3818be > 100644 > --- u-boot-usb-76454b2.orig/drivers/usb/host/ehci-mx5.c > +++ u-boot-usb-76454b2/drivers/usb/host/ehci-mx5.c > @@ -280,6 +280,14 @@ int mxc_set_usbcontrol(int port, unsigned int flags) > return ret; > } > > +int __board_ehci_hcd_init(int port) > +{ > + return 0; > +} > + > +int board_ehci_hcd_init(int port) > + __attribute((weak, alias("__board_ehci_hcd_init"))); > +
Include linux/compiler.h and use simple __weak > void __board_ehci_hcd_postinit(struct usb_ehci *ehci, int port) > { > } Best regards, Marek Vasut _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot