Merge tag 'mtd/for-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
[sfrench/cifs-2.6.git] / drivers / mtd / nand / raw / arasan-nand-controller.c
index a492051c46f5968cd4b0564a2eb125250ee36fc4..2ff1d2b13e3c3a4f8f5ab4b6b18ab801b1844662 100644 (file)
@@ -481,7 +481,7 @@ static int anfc_read_page_hw_ecc(struct nand_chip *chip, u8 *buf,
                }
 
                bf = nand_check_erased_ecc_chunk(raw_buf, chip->ecc.size,
-                                                NULL, 0, NULL, 0,
+                                                anand->hw_ecc, chip->ecc.bytes, NULL, 0,
                                                 chip->ecc.strength);
                if (bf > 0) {
                        mtd->ecc_stats.corrected += bf;