diff options
author | Ye.Li <B37916@freescale.com> | 2014-06-30 11:06:29 +0800 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-03-09 14:41:58 +0100 |
commit | bb9d075eb3f772ddcf7bce36cbbfb81219d310eb (patch) | |
tree | 8220a65abcdf3e46aede70554069869a4c724199 | |
parent | cbd29f6e9415f29ac17ff1b9e90997a8fe9a47e0 (diff) |
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 <B37916@freescale.com>
(cherry picked from commit 987c48c07c9ef62fa3fe55faa6f7369b30637127)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
-rw-r--r-- | arch/arm/cpu/armv7/mx6/soc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index 496148dab75..51631cee490 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -370,6 +370,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; @@ -378,6 +379,7 @@ static void imx_set_pcie_phy_power_down(void) val |= 0x1 << 18; writel(val, IOMUXC_BASE_ADDR + 0x4); } +#endif int arch_cpu_init(void) { |