mtd: nand: fix bad block handling when using nand_partition

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
mtd: nand: sunxi: fix NAND_ECC_NONE support

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>