]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: rawnand: nandsim: Stop using nand_release()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 25 May 2020 08:58:45 +0000 (10:58 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:38 +0000 (10:53 +0200)
commitd6e4fd522461f490f49eda81b7e0fba86141ef20
tree3b0d31bae883b8190d23ab8d97cce705d4c89bd8
parent72e840a15c66e89583f5bf35a8d890f6c77bb2db
mtd: rawnand: nandsim: Stop using nand_release()

nand_release() basically calls mtd_device_unregister() and
nand_cleanup(). Both helpers should be called after MTD device
registration and NAND scan, respectively. Drop nand_release() and use
the two helpers directly so that they fit the error path and the
labels there.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200525085851.17682-12-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nandsim.c