mtd: rawnand: diskonchip: Stop using nand_release()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 19 May 2020 12:59:46 +0000 (14:59 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:33 +0000 (10:53 +0200)
commit63a1460768a1ae34746b3013940233afe5d88105
tree8d1e7a22063e8f946884f96e98bb5f6f55d001e8
parentc5be12e45940f1aa1b5dfa04db5d15ad24f7c896
mtd: rawnand: diskonchip: 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-14-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/diskonchip.c