]> git.sur5r.net Git - u-boot/commitdiff
ARM64: zynqmp: Fix usb_gadget_handle_interrupt routine
authorMichal Simek <michal.simek@xilinx.com>
Thu, 1 Sep 2016 09:16:40 +0000 (11:16 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 22 Sep 2016 05:33:20 +0000 (07:33 +0200)
Function is defined in g_dnl.h and have different parameter
then it is used. This patch fixes it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c

index 7b4b5ffd89f44051e6085bff6e94349597fef6e4..4aed97a72f3b79b951ca6b3e73843f52790a4629 100644 (file)
@@ -17,6 +17,7 @@
 #include <usb.h>
 #include <dwc3-uboot.h>
 #include <i2c.h>
+#include <g_dnl.h>
 
 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;
 }