mtd: nand: mpc5121: return error code of nand_scan() on error
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 4 Nov 2016 10:42:53 +0000 (19:42 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 7 Nov 2016 13:48:43 +0000 (14:48 +0100)
commitbbd4d03c56083069cf0808681bd301cf31701fbd
tree8af330a5f0c1c8c37406f9c6030d97a946f2f1a7
parent408bf51e92752d084d82d21e2c1f838d0ecc5eea
mtd: nand: mpc5121: 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/mpc5121_nfc.c