]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/nand/r852.c
mtd: r852: make ecc_reg 32-bit in r852_ecc_correct
[karo-tx-linux.git] / drivers / mtd / nand / r852.c
index 77e96d2df96cac12194dc0679dfac1dceb098d5e..cc6bac537f5a286a9cfd7027d0da2555886e5dbe 100644 (file)
@@ -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,
                                uint8_t *read_ecc, uint8_t *calc_ecc)
 {
-       uint16_t ecc_reg;
+       uint32_t ecc_reg;
        uint8_t ecc_status, err_byte;
        int i, error = 0;