mtd: rawnand: vf610: Stop using nand_release()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 19 May 2020 13:00:32 +0000 (15:00 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:36 +0000 (10:53 +0200)
commitd9f2a1af817d5c9ee5a6adf70c5a217a583d3af0
treea1c8197677c7887a2e85e9d4a8c566e21d99d0c6
parentf6fc75978d882e9c8970f11082f9be7e5ba95e45
mtd: rawnand: vf610: 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>
Cc: Stefan Agner <stefan@agner.ch>
Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-60-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/vf610_nfc.c