Commit 943a3f2ccb71bcb4a6041bc2946129c4d4bb197e

Authored by Stefano Babic
1 parent 130e6c8cbd

imx: drop warning: unused variable 'max_freq'

max_freq in print_cpuinfo is used only with
imx6.

Signed-off-by: Stefano Babic <sbabic@denx.de>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

arch/arm/imx-common/cpu.c
... ... @@ -145,7 +145,8 @@
145 145  
146 146 int print_cpuinfo(void)
147 147 {
148   - u32 cpurev, max_freq;
  148 + u32 cpurev;
  149 + __maybe_unused u32 max_freq;
149 150  
150 151 #if defined(CONFIG_MX6) && defined(CONFIG_IMX6_THERMAL)
151 152 struct udevice *thermal_dev;