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