|
@@ -466,7 +466,7 @@ static int r852_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat,
|
|
static int r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat,
|
|
static int r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat,
|
|
uint8_t *read_ecc, uint8_t *calc_ecc)
|
|
uint8_t *read_ecc, uint8_t *calc_ecc)
|
|
{
|
|
{
|
|
- uint16_t ecc_reg;
|
|
|
|
|
|
+ uint32_t ecc_reg;
|
|
uint8_t ecc_status, err_byte;
|
|
uint8_t ecc_status, err_byte;
|
|
int i, error = 0;
|
|
int i, error = 0;
|
|
|
|
|