fix compile warnings for gcc 6.2.0
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / rompatch / HIF_usb_patch.c
index d3a59f9780e3629040caf9e458b7b6100a822dd5..db3a89e23c106a293d36165d6e1a0c1300dfdd69 100755 (executable)
@@ -1,7 +1,42 @@
+/*\r
+ * Copyright (c) 2013 Qualcomm Atheros, Inc.\r
+ * All rights reserved.\r
+ *\r
+ * Redistribution and use in source and binary forms, with or without\r
+ * modification, are permitted (subject to the limitations in the\r
+ * disclaimer below) provided that the following conditions are met:\r
+ *\r
+ *  * Redistributions of source code must retain the above copyright\r
+ *    notice, this list of conditions and the following disclaimer.\r
+ *\r
+ *  * Redistributions in binary form must reproduce the above copyright\r
+ *    notice, this list of conditions and the following disclaimer in the\r
+ *    documentation and/or other materials provided with the\r
+ *    distribution.\r
+ *\r
+ *  * Neither the name of Qualcomm Atheros nor the names of its\r
+ *    contributors may be used to endorse or promote products derived\r
+ *    from this software without specific prior written permission.\r
+ *\r
+ * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE\r
+ * GRANTED BY THIS LICENSE.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT\r
+ * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED\r
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\r
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\r
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\r
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\r
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\r
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ */\r
 #include "sys_cfg.h"\r
 #include "dt_defs.h"\r
 #include "reg_defs.h"\r
 \r
+#include <rom.h>
 #include <osapi.h>\r
 #include <hif_api.h>\r
 #include <Magpie_api.h>\r
@@ -33,7 +68,7 @@ void _HIFusb_isr_handler_patch(hif_handle_t h)
 {\r
     A_USB_FW_TASK();\r
 \r
-    _HIFusb_isr_handler();\r
+    _HIFusb_isr_handler(h);
 }\r
 \r
 \r
@@ -66,5 +101,5 @@ void _HIFusb_start_patch(hif_handle_t handle)
             break;\r
         }\r
     }\r
-    _HIFusb_start();\r
+    _HIFusb_start(handle);
 }\r