diff options
| author | Markus Klotzbuecher <mk@denx.de> | 2006-03-24 15:43:16 +0100 | 
|---|---|---|
| committer | Markus Klotzbücher <mk@pollux.denx.de> | 2006-03-24 15:43:16 +0100 | 
| commit | 2770bcb21c82835a5351176e5b2a9221d7fc8ef9 (patch) | |
| tree | 78edf9afc584e1a76d219bd64d260224a84f0d10 /drivers/nand/nand_base.c | |
| parent | 0b953ffc653fc5ab3d3fa47abf0dd9b8bd0703f5 (diff) | |
| parent | 05d8dce9d07cf4073ea15fbc448c1ce22b6baf0f (diff) | |
| download | olio-uboot-2014.01-2770bcb21c82835a5351176e5b2a9221d7fc8ef9.tar.xz olio-uboot-2014.01-2770bcb21c82835a5351176e5b2a9221d7fc8ef9.zip  | |
Merge with http://www.denx.de/git/u-boot.git
Diffstat (limited to 'drivers/nand/nand_base.c')
| -rw-r--r-- | drivers/nand/nand_base.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/nand/nand_base.c b/drivers/nand/nand_base.c index d91d90bfe..e0b406041 100644 --- a/drivers/nand/nand_base.c +++ b/drivers/nand/nand_base.c @@ -897,7 +897,7 @@ static int nand_write_page (struct mtd_info *mtd, struct nand_chip *this, int pa  	int 	i, status;  	u_char	ecc_code[32];  	int	eccmode = oobsel->useecc ? this->eccmode : NAND_ECC_NONE; -	int  	*oob_config = oobsel->eccpos; +	uint  	*oob_config = oobsel->eccpos;  	int	datidx = 0, eccidx = 0, eccsteps = this->eccsteps;  	int	eccbytes = 0; @@ -1119,7 +1119,8 @@ static int nand_read_ecc (struct mtd_info *mtd, loff_t from, size_t len,  	u_char ecc_calc[32];  	u_char ecc_code[32];  	int eccmode, eccsteps; -	int	*oob_config, datidx; +	unsigned *oob_config; +	int	datidx;  	int	blockcheck = (1 << (this->phys_erase_shift - this->page_shift)) - 1;  	int	eccbytes;  	int	compareecc = 1;  |