From 987c48c07c9ef62fa3fe55faa6f7369b30637127 Mon Sep 17 00:00:00 2001 From: "Ye.Li" Date: Mon, 30 Jun 2014 11:06:29 +0800 Subject: ENGR00320350 iMX6SLEVK: Fix build warning of PCIE Phy power down Since the iMX6SL does not have PCIE module, should not define the function "imx_set_pcie_phy_power_down" for it. Otherwise, get the build warning below: arch/arm/cpu/armv7/mx6/soc.c:446:13: warning: 'imx_set_pcie_phy_power_down' defined but not used [-Wunused-function] static void imx_set_pcie_phy_power_down(void) Signed-off-by: Ye.Li --- arch/arm/cpu/armv7/mx6/soc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index e8dc42d..4662893 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -443,6 +443,7 @@ static void imx_set_vddpu_power_down(void) writel(val, &anatop->reg_core_clr); } +#ifndef CONFIG_MX6SL static void imx_set_pcie_phy_power_down(void) { u32 val; @@ -457,6 +458,7 @@ static void imx_set_pcie_phy_power_down(void) writel(val, IOMUXC_GPR_BASE_ADDR + 0x30); #endif } +#endif int arch_cpu_init(void) { -- cgit v1.1