From 43d71693e88fc221219b5710eb89a15971f5627b Mon Sep 17 00:00:00 2001 From: "Ye.Li" Date: Mon, 14 Apr 2014 13:36:41 +0800 Subject: ENGR00308230 iMX6SX: Remove an build warning Got the warning below, which is caused by having "imx_reset_pfd" call removed for iMX6SX. warning: 'imx_reset_pfd' defined but not used [-Wunused-function] static void imx_reset_pfd(void) Signed-off-by: Ye.Li --- arch/arm/cpu/armv7/mx6/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index 90f469c..9569038 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -332,6 +332,7 @@ void check_cpu_temperature(void) printf("CPU: Temperature: can't get valid data!\n"); } +#ifndef CONFIG_MX6SX static void imx_reset_pfd(void) { struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR; @@ -367,6 +368,7 @@ static void imx_reset_pfd(void) BM_ANADIG_PFD_528_PFD0_CLKGATE, &anatop->pfd_528_clr); #endif } +#endif static void imx_set_vddpu_power_down(void) { -- cgit v1.1