mtd: nand: denali: return error code from nand_scan_ident/tail on error
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 9 Nov 2016 04:35:28 +0000 (13:35 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 19 Nov 2016 08:40:41 +0000 (09:40 +0100)
commita227d4e4c356c9be84daba80be282ec56ba46c6c
tree483225fd7298240ad71d1feb89cd17e04e3f362c
parent7ebb8d06781f87f5c6c6e6bae42ab44ba0fe9012
mtd: nand: denali: return error code from nand_scan_ident/tail on error

The nand_scan_ident/tail() returns an appropriate error value when
it fails.  Use it instead of the fixed -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/denali.c