nand: mxs: convey return code from failed function rather than '0' in mxs_nand_ecc_wr...
[karo-tx-uboot.git] / drivers / mtd / nand / mxs_nand.c
index 480b4a5..d4575fb 100644 (file)
@@ -926,7 +926,7 @@ static int mxs_nand_ecc_write_page(struct mtd_info *mtd,
 
 rtn:
        mxs_nand_return_dma_descs(nand_info);
-       return 0;
+       return ret;
 }
 
 /*