]> git.sur5r.net Git - u-boot/commit
lib/display_options: Fix print_freq
authorSuriyan Ramasami <suriyan.r@gmail.com>
Tue, 18 Aug 2015 16:25:33 +0000 (09:25 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 28 Aug 2015 16:32:36 +0000 (12:32 -0400)
commite9015b304ad2a39a03f2684dadeabef474b7addb
tree5446c7248bea3a9f47a39afc86877749b670ddc8
parentb3537c08e14b9d7e3b3207de2d280dab2dc499fa
lib/display_options: Fix print_freq

Build without CONFIG_SPL_SERIAL_SUPPORT does not print the cpu freq.
I have seen this in the odroid U3 board, where on boot one sees this:
CPU:   Exynos4412 @  GHz
instead of:
CPU:   Exynos4412 @ 1 GHz

I am assuming that this change was done to get rid of compiler
warnings related to unused variables when building with
CONFIG_SPL_SERIAL_SUPPORT not being defined in an SPL build.

Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
lib/display_options.c