mtd: rawnand: oxnas: Keep track of registered devices
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 19 May 2020 13:00:08 +0000 (15:00 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:35 +0000 (10:53 +0200)
commit383fc3f613e7eac9f2e3c13b6f9fb8c1f39cb9d5
treee3bc8aab13ec2b1594d5385aafeda560c1000a63
parentf342df67b19a4545ee742301594ad1e9b6e5aa91
mtd: rawnand: oxnas: Keep track of registered devices

All initialized and registered devices should be listed somewhere so
that we can unregister/free them in the _remove() path.

This patch is not a fix per-se but is needed to apply three other
fixes coming right after, explaining the Fixes/Cc: stable tags.

Fixes: 668592492409 ("mtd: nand: Add OX820 NAND Support")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-36-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/oxnas_nand.c