mtd: rawnand: nandsim: Remove debugfs entries at unload time
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 25 May 2020 08:58:40 +0000 (10:58 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:37 +0000 (10:53 +0200)
commitcde495f83959119d0d2c78e74118a61301b8af32
tree26d667fad4a4f594a21565bee3e02e37e32a9960
parent7f2a17369f046399a71da196726f1234b53ff7dc
mtd: rawnand: nandsim: Remove debugfs entries at unload time

Create a ns_debugfs_remove() helper for that and call it in
ns_cleanup_module().

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