summaryrefslogtreecommitdiff
path: root/board/kup/kup4k
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-04 15:55:34 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:13:09 +0100
commitb8221a3b892c700a08022e20d6e817f9756651ea (patch)
treea88d5b530ec2909164e6b2d583b49f4dd224dd0c /board/kup/kup4k
parent13039eb1faccb4e601f68b2a18df998f9b8bc5ea (diff)
downloadu-boot-imx-b8221a3b892c700a08022e20d6e817f9756651ea.zip
u-boot-imx-b8221a3b892c700a08022e20d6e817f9756651ea.tar.gz
u-boot-imx-b8221a3b892c700a08022e20d6e817f9756651ea.tar.bz2
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>
Diffstat (limited to 'board/kup/kup4k')
-rw-r--r--board/kup/kup4k/kup4k.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/kup/kup4k/kup4k.c b/board/kup/kup4k/kup4k.c
index 267821c..e1dc8f7 100644
--- a/board/kup/kup4k/kup4k.c
+++ b/board/kup/kup4k/kup4k.c
@@ -152,7 +152,7 @@ phys_size_t initdram(int board_type)
volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
volatile memctl8xx_t *memctl = &immap->im_memctl;
long int size = 0;
- uchar *latch,rev,mod,tmp;
+ uchar *latch, rev, tmp;
/*
* Init ChipSelect #4 (CAN + HW-Latch) to determine Hardware Revision
@@ -164,7 +164,6 @@ phys_size_t initdram(int board_type)
latch = (uchar *)0x90000200;
tmp = swapbyte(*latch);
rev = (tmp & 0xF8) >> 3;
- mod = (tmp & 0x07);
upmconfig(UPMA, (uint *) sdram_table,
sizeof (sdram_table) / sizeof (uint));