diff options
author | Vivek Gautam <gautam.vivek@samsung.com> | 2013-03-05 03:49:56 +0000 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2013-03-29 11:16:25 +0900 |
commit | 48e2218cd1d63fe968648796d81b8dd6f1cc2bf8 (patch) | |
tree | 1f612595badc7708fbc4daae2dd37fc693ee5897 /board | |
parent | 18637815a401248aef4582e8f379a37373767387 (diff) | |
download | u-boot-imx-48e2218cd1d63fe968648796d81b8dd6f1cc2bf8.zip u-boot-imx-48e2218cd1d63fe968648796d81b8dd6f1cc2bf8.tar.gz u-boot-imx-48e2218cd1d63fe968648796d81b8dd6f1cc2bf8.tar.bz2 |
SMDK5250: Fix compiler warning for non-dt systems
Compiling for non-dt systems gives folowing warning:
smdk5250.c: In function 'board_eth_init':
smdk5250.c:152:6: warning: unused variable 'node' [-Wunused-variable]
Declare variable 'node' only for dt enabled systems to remove this
warning.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/samsung/smdk5250/smdk5250.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index 2293620..8b09e1d 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -312,9 +312,10 @@ int board_eth_init(bd_t *bis) u32 smc_bw_conf, smc_bc_conf; struct fdt_sromc config; fdt_addr_t base_addr; - int node; #ifdef CONFIG_OF_CONTROL + int node; + node = decode_sromc(gd->fdt_blob, &config); if (node < 0) { debug("%s: Could not find sromc configuration\n", __func__); |