diff options
author | Tom Rini <trini@konsulko.com> | 2017-05-09 05:14:20 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-12 15:37:22 +0300 |
commit | 80403aa6361665a232e5ff89f5e4a69d9a8e116b (patch) | |
tree | 28dde5b0869ec59ae3ed5017ee7f7ebfcc08993d /arch/arm/mach-rockchip/rk3036-board-spl.c | |
parent | 1f7efe82bdd5677500cc864ee53530d73367afab (diff) | |
download | u-boot-80403aa6361665a232e5ff89f5e4a69d9a8e116b.tar.xz |
rk3036: Fix unused variable warning
The variable grf is only referenced if EARLY_DEBUG is defined so move the
declaration to be under the existing guard.
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-rockchip/rk3036-board-spl.c')
-rw-r--r-- | arch/arm/mach-rockchip/rk3036-board-spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/rk3036-board-spl.c b/arch/arm/mach-rockchip/rk3036-board-spl.c index 0522d65467..7b8d0ee653 100644 --- a/arch/arm/mach-rockchip/rk3036-board-spl.c +++ b/arch/arm/mach-rockchip/rk3036-board-spl.c @@ -17,13 +17,13 @@ DECLARE_GLOBAL_DATA_PTR; #define GRF_BASE 0x20008000 -static struct rk3036_grf * const grf = (void *)GRF_BASE; #define DEBUG_UART_BASE 0x20068000 void board_init_f(ulong dummy) { #ifdef EARLY_DEBUG + struct rk3036_grf * const grf = (void *)GRF_BASE; /* * NOTE: sd card and debug uart use same iomux in rk3036, * so if you enable uart, |