mtd: rawnand: fsl_elbc: Stop using nand_release()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 19 May 2020 12:59:47 +0000 (14:59 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:33 +0000 (10:53 +0200)
commit128bbbf0ac4d812c4bc4be89126e319bf6c6a480
treeb2fa9810f871c0cc666b4946a42522bbcdf4c1fd
parent63a1460768a1ae34746b3013940233afe5d88105
mtd: rawnand: fsl_elbc: 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-15-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/fsl_elbc_nand.c