mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
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>
This commit is contained in:
parent
1f7efe82bd
commit
80403aa636
1 changed files with 1 additions and 1 deletions
|
@ -17,13 +17,13 @@
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define GRF_BASE 0x20008000
|
#define GRF_BASE 0x20008000
|
||||||
static struct rk3036_grf * const grf = (void *)GRF_BASE;
|
|
||||||
|
|
||||||
#define DEBUG_UART_BASE 0x20068000
|
#define DEBUG_UART_BASE 0x20068000
|
||||||
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
#ifdef EARLY_DEBUG
|
#ifdef EARLY_DEBUG
|
||||||
|
struct rk3036_grf * const grf = (void *)GRF_BASE;
|
||||||
/*
|
/*
|
||||||
* NOTE: sd card and debug uart use same iomux in rk3036,
|
* NOTE: sd card and debug uart use same iomux in rk3036,
|
||||||
* so if you enable uart,
|
* so if you enable uart,
|
||||||
|
|
Loading…
Add table
Reference in a new issue