mtd: rawnand: mtk: Stop using nand_release()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 19 May 2020 13:00:01 +0000 (15:00 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:34 +0000 (10:53 +0200)
commit1fec333aadc2aec9293b7ec10d24e94f75a89b2e
treee61f32fb58f5a196427ed3ce4ba1674d8619d357
parent8a82bbcadec877f5f938c54026278dfc1f05a332
mtd: rawnand: mtk: 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-29-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/mtk_nand.c