openwrtv3/package/boot/uboot-omap/patches/440-use-normal_board_usb_init.patch
Hauke Mehrtens 53d94f89e8 uboot-omap: fix build with gcc-5
This fixes some problems with gcc-5.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 47539
2015-11-20 23:38:39 +00:00

15 lines
409 B
Diff

--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -96,11 +96,10 @@ static void omap_ehci_soft_phy_reset(int
}
#endif
-inline int __board_usb_init(void)
+static int board_usb_init(void)
{
return 0;
}
-int board_usb_init(void) __attribute__((weak, alias("__board_usb_init")));
#if defined(CONFIG_OMAP_EHCI_PHY1_RESET_GPIO) || \
defined(CONFIG_OMAP_EHCI_PHY2_RESET_GPIO) || \