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