mtd: nand: jz4780: Update ecc correction error codes
authorHarvey Hunt <harvey.hunt@imgtec.com>
Fri, 8 Jan 2016 16:45:17 +0000 (16:45 +0000)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 8 Jan 2016 17:44:30 +0000 (09:44 -0800)
commit6c1207b5b8422cdddf467b9fbef922c4c374d382
treeffb28776bdced8aaf94e406df9715ac754fa4860
parentc66b651ce60bb82d8f6fe8ca35e70f323e3a260c
mtd: nand: jz4780: Update ecc correction error codes

Update jz4780_bch_ecc_correct's return codes with appropriate values,
as specified in /include/linux/mtd/nand.h.

Signed-off-by: Harvey Hunt <harvey.hunt@imgtec.com>
Cc: Alex Smith <alex@alex-smith.me.uk>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/jz4780_bch.c