mtd: nand: omap: fix error return code in omap_nand_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 1 Nov 2013 00:16:18 +0000 (08:16 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:33:15 +0000 (23:33 -0800)
commit9211439b8a933a624d770113d0e0aa742db2ec67
treefb33efe7cf4a38cbb02acd348f021a0e8fb3f5c5
parent5961ad2cb4dd14933889f5219e0d8505669d752d
mtd: nand: omap: fix error return code in omap_nand_probe()

Fix to return a negative error code from the error handling case instead
of 0, to more closely match the rest of this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/omap2.c