]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: nand: plat_nand: return error code of nand_scan() on error
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 4 Nov 2016 10:42:57 +0000 (19:42 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 7 Nov 2016 13:48:45 +0000 (14:48 +0100)
commitce2eaca7ebf13006cb992ed2f8ce46aaf8724c71
tree80bab8f2ecbbfcb11dcb41bea3158de2a21b15c8
parent4e5af27e2a3a393558936b82fece1942ec49f534
mtd: nand: plat_nand: return error code of nand_scan() on error

The nand_scan() returns an appropriate error value when it fails.
Use it instead of the fixed error code -ENXIO.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/plat_nand.c