lib/display_options: Fix print_freq
authorSuriyan Ramasami <suriyan.r@gmail.com>
Tue, 18 Aug 2015 16:25:33 +0000 (09:25 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:48 +0000 (11:29 +0200)
commitdbd70576be74897eee7d8c36f3be226d5843e2eb
treec19e3a2a28c568b93206cd1530fb8d18c6b3fe68
parent2aced54ed9c830400f38ddf92676fe28ae149027
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