mtd: nand: socrates: use nand_scan() for nand_scan_ident/tail() combo
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 4 Nov 2016 10:43:10 +0000 (19:43 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 7 Nov 2016 13:48:53 +0000 (14:48 +0100)
commit83f48f80de8a03c053ff0cac1521c1eaeaa107f2
treeffb98c39b9cf76cba4eb752aab57b6a740982d41
parentc75183020fca0229fce1fd6ba21ae840b41d79e9
mtd: nand: socrates: use nand_scan() for nand_scan_ident/tail() combo

For this driver, there is nothing between nand_scan_ident() and
nand_scan_tail().  They can be merged into nand_scan().

Also, 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/socrates_nand.c