diff options
author | Diego Dorta <diego.dorta@nxp.com> | 2017-10-05 09:15:58 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-10-12 18:00:18 +0200 |
commit | e2000731ae5396d97bae44c404e63d5f7b6e4788 (patch) | |
tree | 60a9bf13c48daafc3b78651444c9ea8efe53c8d6 /arch | |
parent | 342b4b09b1fb58753bc46609d5ea68759b7d8626 (diff) | |
download | u-boot-e2000731ae5396d97bae44c404e63d5f7b6e4788.zip u-boot-e2000731ae5396d97bae44c404e63d5f7b6e4788.tar.gz u-boot-e2000731ae5396d97bae44c404e63d5f7b6e4788.tar.bz2 |
mx6: sys_proto: Add prototypes for imx6_pcie_toggle() functions
When compiling with W=1 errors are observed:
drivers/pci/pcie_imx.c:517:12: warning: no previous prototype for ‘imx6_pcie_toggle_power’ [-Wmissing-prototypes] __weak int imx6_pcie_toggle_power(void)
drivers/pci/pcie_imx.c:528:12: warning: no previous prototype for ‘imx6_pcie_toggle_reset’ [-Wmissing-prototypes] __weak int imx6_pcie_toggle_reset(void)
Remove these warnings by adding the functions prototypes on arch-mx6/sys_proto.
Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/arch-mx6/sys_proto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h b/arch/arm/include/asm/arch-mx6/sys_proto.h index ba73943..b22a7a0 100644 --- a/arch/arm/include/asm/arch-mx6/sys_proto.h +++ b/arch/arm/include/asm/arch-mx6/sys_proto.h @@ -13,3 +13,6 @@ #define is_usbotg_phy_active(void) (!(readl(USB_PHY0_BASE_ADDR + USBPHY_PWD) & \ USBPHY_PWD_RXPWDRX)) + +int imx6_pcie_toggle_power(void); +int imx6_pcie_toggle_reset(void); |