linux/drivers/mtd/nand/raw/ingenic
Miquel Raynal de17cade0e mtd: rawnand: ingenic: Fix the probe error path
nand_release() is supposed be called after MTD device registration.
Here, only nand_scan() happened, so use nand_cleanup() instead.

There is no real Fixes tag applying here as the use of nand_release()
in this driver predates the introduction of nand_cleanup() in
commit d44154f969 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
which makes this change possible. Hence, pointing it as the commit to
fix for backporting purposes, even if this commit is not introducing
any bug makes sense.

Fixes: d44154f969 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: stable@vger.kernel.org
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-22-miquel.raynal@bootlin.com
2020-05-31 10:53:34 +02:00
..
ingenic_ecc.c mtd: rawnand: ingenic: Use devm_platform_ioremap_resource() 2020-03-09 14:51:01 +01:00
ingenic_ecc.h mtd: rawnand: ingenic: Separate top-level and SoC specific code 2019-04-08 10:21:04 +02:00
ingenic_nand_drv.c mtd: rawnand: ingenic: Fix the probe error path 2020-05-31 10:53:34 +02:00
jz4725b_bch.c mtd: Convert fallthrough comments into statements 2020-03-30 10:14:54 +02:00
jz4740_ecc.c mtd: rawnand: ingenic: Add support for the JZ4740 2019-04-08 10:21:05 +02:00
jz4780_bch.c mtd: Convert fallthrough comments into statements 2020-03-30 10:14:54 +02:00
Kconfig mtd: rawnand: ingenic: Add dependency on MIPS || COMPILE_TEST 2020-03-11 16:17:55 +01:00
Makefile mtd: rawnand: Drop obsolete JZ4740 NAND driver 2019-07-30 10:41:54 -07:00