]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: nand: pasemi: return error code of nand_scan() on error
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 4 Nov 2016 10:42:56 +0000 (19:42 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 7 Nov 2016 13:48:45 +0000 (14:48 +0100)
commit4e5af27e2a3a393558936b82fece1942ec49f534
tree1e0832475c76c1dccf72644874f2e2b7067fe537
parent6c34ad7d17849bbfaf362d7c5bed11d80c1cdab4
mtd: nand: pasemi: 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/pasemi_nand.c