mtd: rawnand: sm_common: fix the probe function error path
authorMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 25 Feb 2018 22:09:14 +0000 (23:09 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:46:04 +0000 (09:46 +0200)
commit92aa292d2e47be6210c0ba6074fc0ddfc02f7856
tree1db4ca3b8f6d6e72a03ff1a1143afdfd737cbeec
parent962c35ef1e68346ae9c9691e14670f0ee96dcdbd
mtd: rawnand: sm_common: fix the probe function error path

nand_cleanup() should be called upon error after a successful
nand_scan_tail().

Rework the error path to follow this rule .

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/sm_common.c