diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-11-04 19:42:55 +0900 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-11-07 14:48:44 +0100 |
commit | 6c34ad7d17849bbfaf362d7c5bed11d80c1cdab4 (patch) | |
tree | 580b61aff3491f55e85f71fae77f0510c32a3790 /drivers/mtd/nand/atmel_nand.c | |
parent | 43358c173d02446b9f8da25fb0de8cfc22eb1ae6 (diff) | |
download | linux-6c34ad7d17849bbfaf362d7c5bed11d80c1cdab4.tar.gz linux-6c34ad7d17849bbfaf362d7c5bed11d80c1cdab4.tar.bz2 linux-6c34ad7d17849bbfaf362d7c5bed11d80c1cdab4.zip |
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>
Diffstat (limited to 'drivers/mtd/nand/atmel_nand.c')
0 files changed, 0 insertions, 0 deletions