mtd: rawnand: pasemi: Stop using nand_release()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 19 May 2020 13:00:14 +0000 (15:00 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:35 +0000 (10:53 +0200)
commit23cf3461501011759614b5494da390feeae3a1b3
tree5d98ee62eb24a347951c5184f72b20ff734c8289
parentf51466901c07e6930435d30b02a21f0841174f61
mtd: rawnand: pasemi: Stop using nand_release()

This helper is not very useful and very often people get confused:
they use nand_release() instead of nand_cleanup().

Let's stop using nand_release() by calling mtd_device_unregister() and
nand_cleanup() directly.

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