mtd: rawnand: ams-delta: Stop using nand_release()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 19 May 2020 12:59:34 +0000 (14:59 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 26 May 2020 19:37:51 +0000 (21:37 +0200)
commit08f25cd767e1086266453fb2f4a3ded05b9cc8a7
tree6a9d8e18138677cdd0a63b6ddcd7609aa8d6ed66
parent88ffef1b65cf989b2dfea6374caff804fca6ec32
mtd: rawnand: ams-delta: 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-2-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/ams-delta.c