diff options
| author | Wolfgang Denk <wd@denx.de> | 2011-11-23 21:23:45 +0100 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-11-23 21:23:45 +0100 | 
| commit | fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3 (patch) | |
| tree | 98c39a0594ef02e08d5842cfff1f1d6bcc5a8eda /board/lubbock/flash.c | |
| parent | bd0f5ca806c73f9e1ef4a2a0416233ab7e257df9 (diff) | |
| parent | d780e74fc3abe6a8b9a01357720c15d974d83dae (diff) | |
| download | olio-uboot-2014.01-fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3.tar.xz olio-uboot-2014.01-fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3.zip | |
Merge branch 'hs@denx.de' of git://git.denx.de/u-boot-staging
* 'hs@denx.de' of git://git.denx.de/u-boot-staging:
  drivers/net/dnet.c: Fix GCC 4.6 warnings
  board/xaeniax/flash.c: Fix GCC 4.6 warnings
  net/bootp.c: Fix GCC 4.6 warning
  common/cmd_bootm.c: Fix GCC 4.6 warnings
  board/mx1ads/mx1ads.c: Fix GCC 4.6 warning
  board/mx1ads/syncflash.c: Fix GCC 4.6 warnings
  board/lubbock/flash.c: Fix GCC 4.6 warnings
  drivers/net/cs8900.c: Fix GCC 4.6 warning
  arch/arm/cpu/arm926ejs/omap/cpuinfo.c: Fix GCC 4.6 warnings
  drivers/net/lan91c96.c: Fix GCC 4.6 warning
  board/ronetix/pm9263/pm9263.c: Fix GCC 4.6 warning
  drivers/mtd/onenand/samsung.c: Fix GCC 4.6 warning
  drivers/usb/musb/musb_hcd.c: Fix GCC 4.6 warning
Diffstat (limited to 'board/lubbock/flash.c')
| -rw-r--r-- | board/lubbock/flash.c | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/board/lubbock/flash.c b/board/lubbock/flash.c index e1e7807bc..bf8f0c912 100644 --- a/board/lubbock/flash.c +++ b/board/lubbock/flash.c @@ -220,7 +220,7 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)  int flash_erase (flash_info_t *info, int s_first, int s_last)  { -	int flag, prot, sect; +	int prot, sect;  	ulong type, start;  	int rcode = 0; @@ -255,7 +255,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)  	}  	/* Disable interrupts which might cause a timeout here */ -	flag = disable_interrupts (); +	disable_interrupts();  	/* Start erase on unprotected sectors */  	for (sect = s_first; sect <= s_last; sect++) { @@ -389,7 +389,6 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)  {  	FPWV *addr = (FPWV *) dest;  	ulong status; -	int flag;  	ulong start;  	/* Check if Flash is (sufficiently) erased */ @@ -398,7 +397,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)  		return (2);  	}  	/* Disable interrupts which might cause a timeout here */ -	flag = disable_interrupts (); +	disable_interrupts();  	*addr = (FPW) 0x00400040;	/* write setup */  	*addr = data; |