mtd: rawnand: nandsim: Keep track of the created debugfs entries
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 25 May 2020 08:58:39 +0000 (10:58 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:37 +0000 (10:53 +0200)
commit7f2a17369f046399a71da196726f1234b53ff7dc
treedbff671d9bfed529387d4667d18f3b3b38d9db79
parent052a7a5374bc1e41dd1588fcb861ec3d810fd160
mtd: rawnand: nandsim: Keep track of the created debugfs entries

Debugfs entries should be removed in the error path, so first, keep
track of them.

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