From: Ye Li Date: Wed, 20 Dec 2017 10:28:32 +0000 (-0600) Subject: MLK-17272 imx8mq_evk: Fix build warnings with usb power X-Git-Tag: rel_imx_4.9.88_2.0.0_ga~115 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=2a1812cebfbdfb24ba56337c0d9b7bf6c6324798;p=u-boot.git MLK-17272 imx8mq_evk: Fix build warnings with usb power 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 Acked-by: Peng Fan --- diff --git a/arch/arm/include/asm/arch-imx8m/sys_proto.h b/arch/arm/include/asm/arch-imx8m/sys_proto.h index 1adeeefe9e..6b589513ba 100644 --- a/arch/arm/include/asm/arch-imx8m/sys_proto.h +++ b/arch/arm/include/asm/arch-imx8m/sys_proto.h @@ -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[]; diff --git a/drivers/usb/host/xhci-imx8m.c b/drivers/usb/host/xhci-imx8m.c index 40f0518bc5..b4ed87df46 100644 --- a/drivers/usb/host/xhci-imx8m.c +++ b/drivers/usb/host/xhci-imx8m.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "xhci.h" /* Declare global data pointer */