uboot-omap: fix build with gcc-5
[openwrt-github/.git] / package / boot / uboot-omap / patches / 440-use-normal_board_usb_init.patch
1 --- a/drivers/usb/host/ehci-omap.c
2 +++ b/drivers/usb/host/ehci-omap.c
3 @@ -96,11 +96,10 @@ static void omap_ehci_soft_phy_reset(int
4  }
5  #endif
6  
7 -inline int __board_usb_init(void)
8 +static int board_usb_init(void)
9  {
10         return 0;
11  }
12 -int board_usb_init(void) __attribute__((weak, alias("__board_usb_init")));
13  
14  #if defined(CONFIG_OMAP_EHCI_PHY1_RESET_GPIO) || \
15         defined(CONFIG_OMAP_EHCI_PHY2_RESET_GPIO) || \