]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: nand: sunxi: Return on set_feature only when not ENOTSUPP
authorMylène Josserand <mylene.josserand@bootlin.com>
Fri, 13 Jul 2018 16:10:24 +0000 (18:10 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 31 Jul 2018 15:15:50 +0000 (20:45 +0530)
commite166deed0053046a3d2755e0db78f5ef5542af7a
treeab1f5a9f14d55b5116005f47f90202701fbd234d
parentfc9e0468b447648e4cf5347030f2b0ad316dbe93
mtd: nand: sunxi: Return on set_feature only when not ENOTSUPP

Return the error code of the set_features function only if
the error code is not ENOTSUPP. Otherwise, if this function
is not supported, it will return and fail to initialize the
NAND.

Signed-off-by: Mylène Josserand <mylene.josserand@bootlin.com>
Acked-by: Jagan Teki <jagan@openedev.com>
drivers/mtd/nand/sunxi_nand.c