From eb33cfedf464755a4d64f3ff08b7dd35b1d844d3 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 1 Sep 2016 11:16:40 +0200 Subject: [PATCH] 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 --- board/xilinx/zynqmp/zynqmp.c | 5 +++-- include/configs/xilinx_zynqmp_mini.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index eca916f0140..f6680fcf35a 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -18,6 +18,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -424,9 +425,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; } diff --git a/include/configs/xilinx_zynqmp_mini.h b/include/configs/xilinx_zynqmp_mini.h index 16cb3bf5ad0..3a2158d8f6b 100644 --- a/include/configs/xilinx_zynqmp_mini.h +++ b/include/configs/xilinx_zynqmp_mini.h @@ -48,7 +48,6 @@ #undef CONFIG_MP #undef CONFIG_SYS_MEMTEST_START #undef CONFIG_SYS_MEMTEST_END -#undef CONFIG_SYS_CACHELINE_SIZE #undef CONFIG_SYS_INIT_SP_ADDR #undef CONFIG_SYS_LONGHELP #undef CONFIG_CMD_CACHE -- 2.47.3