mtd: rawnand: denali: Delete items from the list in the _remove() path
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 19 May 2020 12:59:43 +0000 (14:59 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:33 +0000 (10:53 +0200)
commit6ac64a17554ff98b5419af29ed139860a910ad0b
treec8fbcdb01f00468469369edb66988ecad057dd9b
parenta9575c48e52042ccc06105e6b7fe4a26f49f0a67
mtd: rawnand: denali: Delete items from the list in the _remove() path

Denali driver keeps track of devices with a list. Delete items of this
list as long as they are not in use anymore.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-11-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/denali.c