From: Michal Simek Date: Thu, 1 Sep 2016 09:16:40 +0000 (+0200) Subject: ARM64: zynqmp: Fix usb_gadget_handle_interrupt routine X-Git-Tag: v2016.11-rc1~113^2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9feff385f889d767b5c3643e515b723a448ab44b;p=u-boot ARM64: zynqmp: Fix usb_gadget_handle_interrupt routine Function is defined in g_dnl.h and have different parameter then it is used. This patch fixes it. Signed-off-by: Michal Simek --- diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 7b4b5ffd89..4aed97a72f 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -17,6 +17,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -297,9 +298,9 @@ static struct dwc3_device dwc3_device_data1 = { .index = 1, }; -int usb_gadget_handle_interrupts(void) +int usb_gadget_handle_interrupts(int index) { - dwc3_uboot_handle_interrupt(0); + dwc3_uboot_handle_interrupt(index); return 0; }