mtd: nand: sunxi: fix the NFC_ECC_ERR_CNT() macro
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 4 Mar 2016 16:25:08 +0000 (17:25 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:41 +0000 (22:05 +0200)
commitf8b04746a4ba389d609b5ddcfbf95835c7dfcb31
tree8f4262c2a4ee2920075e90ea9eac397bfd82b12a
parentece03cfd5260e0349442dea1d1065f44fbed1ea8
mtd: nand: sunxi: fix the NFC_ECC_ERR_CNT() macro

NFC_ECC_ERR_CNT() is not taking into account the case when the NAND chip
contains more than 4 ECC blocks (NANDs with 4kB+ pages).

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c