summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarek BehĂșn <[email protected]>2021-05-20 13:24:18 +0200
committerTom Rini <[email protected]>2021-05-24 14:21:30 -0400
commit79dec66ca7438d8ed339e513c2b93c055ba2b3e8 (patch)
tree7046618160fdce12641c57788506cea4498e337a /arch
parent9d3918f3fd3cf3b84043ba3490e428abceeabd3d (diff)
ARM: fix LTO for rockchip and samsung
When building with LTO, the compiler complains about type mismatch of function usb_gadget_handle_interrupts(). This function is defined without parameters in files arch/arm/mach-rockchip/board.c board/samsung/common/exynos5-dt.c but it should have one parameter, int index. Fix this. Signed-off-by: Marek BehĂșn <[email protected]> Reviewed-by: Bin Meng <[email protected]> Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-rockchip/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
index c386b52987e..5304eb055c6 100644
--- a/arch/arm/mach-rockchip/board.c
+++ b/arch/arm/mach-rockchip/board.c
@@ -139,7 +139,7 @@ static struct dwc3_device dwc3_device_data = {
.hsphy_mode = USBPHY_INTERFACE_MODE_UTMIW,
};
-int usb_gadget_handle_interrupts(void)
+int usb_gadget_handle_interrupts(int index)
{
dwc3_uboot_handle_interrupt(0);
return 0;