diff options
author | Wolfgang Denk <wd@denx.de> | 2011-12-11 21:16:20 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-12 14:26:17 +0100 |
commit | 6bef783310ed12bbbe309e8baf1689afc43ab93e (patch) | |
tree | 9b8b2b5ede28915eab09f8e59585fbfbd96b1186 | |
parent | fa75f515616729ccec4c406cb88450aa8045a5e9 (diff) | |
download | u-boot-6bef783310ed12bbbe309e8baf1689afc43ab93e.tar.gz u-boot-6bef783310ed12bbbe309e8baf1689afc43ab93e.tar.xz u-boot-6bef783310ed12bbbe309e8baf1689afc43ab93e.zip |
board/ti/omap2420h4/omap2420h4.c: Fix GC 4.6 build warning
Fix:
omap2420h4.c: In function 'dram_init':
omap2420h4.c:196:25: warning: variable 'cpu' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Cc: Tom Rini <trini@ti.com>
-rw-r--r-- | board/ti/omap2420h4/omap2420h4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/ti/omap2420h4/omap2420h4.c b/board/ti/omap2420h4/omap2420h4.c index 1c98e1b82a..a3983e376b 100644 --- a/board/ti/omap2420h4/omap2420h4.c +++ b/board/ti/omap2420h4/omap2420h4.c @@ -193,7 +193,7 @@ void ether_init (void) int dram_init (void) { unsigned int size0=0,size1=0; - u32 mtype, btype, rev, cpu; + u32 mtype, btype, rev; u8 chg_on = 0x5; /* enable charge of back up battery */ u8 vmode_on = 0x8C; #define NOT_EARLY 0 @@ -203,7 +203,6 @@ int dram_init (void) btype = get_board_type(); mtype = get_mem_type(); rev = get_cpu_rev(); - cpu = get_cpu_type(); display_board_info(btype); if (btype == BOARD_H4_MENELAUS){ |