ehci-mx5/6: Make board_ehci_hcd_init() optional
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Tue, 13 Nov 2012 09:58:35 +0000 (09:58 +0000)
committerStefano Babic <sbabic@denx.de>
Fri, 16 Nov 2012 08:16:46 +0000 (09:16 +0100)
commitf22e4fae19c05ae66c83b846fee66a1b8fbc5a9b
tree35a4576a1e92878bbd63c5249469bc9919222afd
parent961a762838d55dc9bae8fa7ea57bc3c51a9c7b57
ehci-mx5/6: Make board_ehci_hcd_init() optional

A custom board_ehci_hcd_init() may be unneeded, so add a weak default
implementation doing nothing.

By the way, use simple __weak from linux/compiler.h for
board_ehci_hcd_postinit() instead of weak alias with full attribute.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
drivers/usb/host/ehci-mx5.c
drivers/usb/host/ehci-mx6.c