]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:33:07 +0000 (09:33 +0200)
commit4682749ce329c0d51f050d2faca19788f8225341
treebed3bd409e706f2e3e49d18fbfd7aecacf91e954
parent8463054e3d4ed0486fbbb639562a87888d9de945
mtd: rawnand: oxnas: Keep track of registered devices

commit 383fc3f613e7eac9f2e3c13b6f9fb8c1f39cb9d5 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/raw/oxnas_nand.c