Commit 30bba0175122150c330ff95132e048a39bf978eb

Authored by Tom Rini
1 parent 34fa07063a

am33xx: Fix warning with CONFIG_DISPLAY_CPUINFO

The arm_freq and ddr_freq variables are unused, so remove.  Fixup
whitespace slightly while in here.

Reviewed-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Tom Rini <trini@ti.com>

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

arch/arm/cpu/armv7/am33xx/sys_info.c
... ... @@ -92,7 +92,6 @@
92 92 int print_cpuinfo(void)
93 93 {
94 94 char *cpu_s, *sec_s;
95   - int arm_freq, ddr_freq;
96 95  
97 96 switch (get_cpu_type()) {
98 97 case AM335X:
... ... @@ -123,10 +122,7 @@
123 122 sec_s = "?";
124 123 }
125 124  
126   - printf("%s-%s rev %d\n",
127   - cpu_s, sec_s, get_cpu_rev());
128   -
129   - /* TODO: Print ARM and DDR frequencies */
  125 + printf("%s-%s rev %d\n", cpu_s, sec_s, get_cpu_rev());
130 126  
131 127 return 0;
132 128 }