[U-Boot] [PATCH] imx: drop warning: unused variable 'max_freq'

Stefano Babic sbabic at denx.de
Tue May 26 19:56:05 CEST 2015


max_freq in print_cpuinfo is used only with
imx6.

Signed-off-by: Stefano Babic <sbabic at denx.de>
---
 arch/arm/imx-common/cpu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c
index 275befd..a78e0ed 100644
--- a/arch/arm/imx-common/cpu.c
+++ b/arch/arm/imx-common/cpu.c
@@ -145,11 +145,12 @@ const char *get_imx_type(u32 imxtype)
 
 int print_cpuinfo(void)
 {
-	u32 cpurev, max_freq;
+	u32 cpurev;
 
 #if defined(CONFIG_MX6) && defined(CONFIG_IMX6_THERMAL)
 	struct udevice *thermal_dev;
 	int cpu_tmp, minc, maxc, ret;
+	u32 max_freq;
 #endif
 
 	cpurev = get_cpu_rev();
-- 
1.9.1



More information about the U-Boot mailing list