From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Beno=C3=AEt_Th=C3=A9baudeau?= Date: Tue, 6 Nov 2012 00:34:46 +0100 (CET) Subject: [U-Boot] [PATCH 13/13] ehci-mx5: Make board_ehci_hcd_init() optional In-Reply-To: <201211052357.12129.marex@denx.de> Message-ID: <1022231149.594667.1352158486934.JavaMail.root@advansee.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek Vasut, On Monday, November 5, 2012 11:57:11 PM, Marek Vasut wrote: > 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 > > Cc: Marek Vasut > > Cc: Stefano Babic > > --- > > .../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 Will do. Best regards, Beno?t