mtd: rawnand: nandsim: Reorganize ns_cleanup_module()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 25 May 2020 08:58:51 +0000 (10:58 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:40 +0000 (10:53 +0200)
commit5724fa7f2e25a0f355063ba9271529fa00c32206
tree927f01698bc4dde9b2aa995b621191b9688d51d7
parentf82d82e202fce7d461c2a6bdb55feaf28448a075
mtd: rawnand: nandsim: Reorganize ns_cleanup_module()

Reorganize ns_cleanup_module() to fit the reworked exit path of
ns_init_module().

There is no need for a ns_free_lists() function anymore, so drop it.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200525085851.17682-18-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nandsim.c