mtd: rawnand: gpmi: return valid value from bch_set_geometry()
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 26 Apr 2018 15:41:26 +0000 (17:41 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 29 Apr 2018 06:56:48 +0000 (08:56 +0200)
commite637f5fe8e0cbee455b75afbc0cf2a0cc76997f4
treec9dad64b05b6a68228061ea1bc722a54107a506e
parent111bfed4f30ff16e1d47e4ce3a1f427882f365d3
mtd: rawnand: gpmi: return valid value from bch_set_geometry()

The caller of bch_set_geometry() expects the return value to
be an error code, so !0 is not valid. return the error from the
just called function instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/gpmi-nand/gpmi-lib.c