summaryrefslogtreecommitdiff
path: root/board/prodrive/alpr/fpga.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-29 22:17:44 (GMT)
committerWolfgang Denk <wd@denx.de>2011-12-01 23:10:02 (GMT)
commitbba8f3929e1ae3c09274b8dcdf0ad7b099494f71 (patch)
tree733e8e01e6c4ae393fd9192488c12dd530f23ddd /board/prodrive/alpr/fpga.c
parent4ebbba442587cb03590c0747fd1fea16a158f15c (diff)
downloadu-boot-bba8f3929e1ae3c09274b8dcdf0ad7b099494f71.tar.xz
alpr board: Fix GCC 4.6 build warnings
Fix: fpga.c: In function 'fpga_pre_fn': fpga.c:88:16: warning: variable 'reg' set but not used [-Wunused-but-set-variable] nand.c: In function 'alpr_nand_dev_ready': nand.c:125:18: warning: variable 'val' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/prodrive/alpr/fpga.c')
-rw-r--r--board/prodrive/alpr/fpga.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/board/prodrive/alpr/fpga.c b/board/prodrive/alpr/fpga.c
index e7686ad..1cce798 100644
--- a/board/prodrive/alpr/fpga.c
+++ b/board/prodrive/alpr/fpga.c
@@ -85,9 +85,6 @@ static unsigned long regval;
/* PROGRAM_SEL_DPR = LOW */
int fpga_pre_fn(int cookie)
{
- unsigned long reg;
-
- reg = in32(GPIO0_IR);
/* Enable the FPGA Chain */
SET_GPIO_REG_1(GPIO0_TCR, CONFIG_SYS_GPIO_PROG_EN);
SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_PROG_EN);