MLK-17272 imx8mq_evk: Fix build warnings with usb power
authorYe Li <ye.li@nxp.com>
Wed, 20 Dec 2017 10:28:32 +0000 (04:28 -0600)
committerYe Li <ye.li@nxp.com>
Thu, 21 Dec 2017 02:11:16 +0000 (20:11 -0600)
Fix build warnings below, because the imx8m_usb_power is not declared

board/freescale/imx8mq_evk/imx8m_evk.c: In function ‘board_usb_init’:
board/freescale/imx8mq_evk/imx8m_evk.c:205:2: warning: implicit
declaration of function ‘imx8m_usb_power’ [-Wimplicit-function-declaration]
  imx8m_usb_power(index, true);
  ^~~~~~~~~~~~~~~

drivers/usb/host/xhci-imx8m.c: In function ‘xhci_hcd_init’:
drivers/usb/host/xhci-imx8m.c:123:3: warning: implicit declaration of
function ‘imx8m_usb_power’ [-Wimplicit-function-declaration]
   imx8m_usb_power(ctr_data[index].usb_id, false);
   ^~~~~~~~~~~~~~~

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-imx8m/sys_proto.h
drivers/usb/host/xhci-imx8m.c

index 1adeeef..6b58951 100644 (file)
@@ -9,4 +9,5 @@
 void set_wdog_reset(struct wdog_regs *wdog);
 void enable_tzc380(void);
 void restore_boot_params(void);
+int imx8m_usb_power(int usb_id, bool on);
 extern unsigned long rom_pointer[];
index 40f0518..b4ed87d 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/errno.h>
 #include <linux/compat.h>
 #include <linux/usb/dwc3.h>
+#include <asm/arch/sys_proto.h>
 #include "xhci.h"
 
 /* Declare global data pointer */