mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 07:01:39 +00:00
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>
This commit is contained in:
parent
4ebbba4425
commit
bba8f3929e
2 changed files with 1 additions and 6 deletions
|
@ -85,9 +85,6 @@ static unsigned long regval;
|
||||||
/* PROGRAM_SEL_DPR = LOW */
|
/* PROGRAM_SEL_DPR = LOW */
|
||||||
int fpga_pre_fn(int cookie)
|
int fpga_pre_fn(int cookie)
|
||||||
{
|
{
|
||||||
unsigned long reg;
|
|
||||||
|
|
||||||
reg = in32(GPIO0_IR);
|
|
||||||
/* Enable the FPGA Chain */
|
/* Enable the FPGA Chain */
|
||||||
SET_GPIO_REG_1(GPIO0_TCR, CONFIG_SYS_GPIO_PROG_EN);
|
SET_GPIO_REG_1(GPIO0_TCR, CONFIG_SYS_GPIO_PROG_EN);
|
||||||
SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_PROG_EN);
|
SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_PROG_EN);
|
||||||
|
|
|
@ -122,12 +122,10 @@ static int alpr_nand_verify_buf(struct mtd_info *mtd, const u_char *buf, int len
|
||||||
|
|
||||||
static int alpr_nand_dev_ready(struct mtd_info *mtd)
|
static int alpr_nand_dev_ready(struct mtd_info *mtd)
|
||||||
{
|
{
|
||||||
volatile u_char val;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Blocking read to wait for NAND to be ready
|
* Blocking read to wait for NAND to be ready
|
||||||
*/
|
*/
|
||||||
val = readb(&(alpr_ndfc->addr_wait));
|
(void)readb(&(alpr_ndfc->addr_wait));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return always true
|
* Return always true
|
||||||
|
|
Loading…
Add table
Reference in a new issue