mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 10:01:32 +00:00
board/kup/kup4k/kup4k.c: Fix GCC 4.6 build warning
Fix: kup4k.c: In function 'initdram': kup4k.c:155:19: warning: variable 'mod' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Klaus Heydeck <heydeck@kieback-peter.de>
This commit is contained in:
parent
13039eb1fa
commit
b8221a3b89
1 changed files with 1 additions and 2 deletions
|
@ -152,7 +152,7 @@ phys_size_t initdram(int board_type)
|
||||||
volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
|
volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
|
||||||
volatile memctl8xx_t *memctl = &immap->im_memctl;
|
volatile memctl8xx_t *memctl = &immap->im_memctl;
|
||||||
long int size = 0;
|
long int size = 0;
|
||||||
uchar *latch,rev,mod,tmp;
|
uchar *latch, rev, tmp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Init ChipSelect #4 (CAN + HW-Latch) to determine Hardware Revision
|
* Init ChipSelect #4 (CAN + HW-Latch) to determine Hardware Revision
|
||||||
|
@ -164,7 +164,6 @@ phys_size_t initdram(int board_type)
|
||||||
latch = (uchar *)0x90000200;
|
latch = (uchar *)0x90000200;
|
||||||
tmp = swapbyte(*latch);
|
tmp = swapbyte(*latch);
|
||||||
rev = (tmp & 0xF8) >> 3;
|
rev = (tmp & 0xF8) >> 3;
|
||||||
mod = (tmp & 0x07);
|
|
||||||
|
|
||||||
upmconfig(UPMA, (uint *) sdram_table,
|
upmconfig(UPMA, (uint *) sdram_table,
|
||||||
sizeof (sdram_table) / sizeof (uint));
|
sizeof (sdram_table) / sizeof (uint));
|
||||||
|
|
Loading…
Add table
Reference in a new issue