]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: marvell: Fix probe error path
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 24 Apr 2020 16:44:59 +0000 (18:44 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:39 +0000 (09:51 +0200)
commit7172f6ec72ee7011952b652a6a4a5fbb2c9cd89e
treef75638daa7c2f854d5b47690410f6c772f0aa69c
parentf2197d668e426f87c3394c9dda5d676ea8658e75
mtd: rawnand: marvell: Fix probe error path

Ensure all chips are deregistered and cleaned in case of error during
the probe.

Fixes: 8cfde04381f0 ("mtd: nand: add reworked Marvell NAND controller driver")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200424164501.26719-5-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/marvell_nand.c