mtd: rawnand: oxnas: Release all devices in the _remove() path
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 19 May 2020 13:00:11 +0000 (15:00 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:35 +0000 (10:53 +0200)
commit0a5f45e57e35d0840bedb816974ce2e63406cd8b
treee51f56ac6c9692fe29f0bd6b5c0e3c53b3055669
parentb60391eb17b2956ff2fc4c348e5a464da21ff9cb
mtd: rawnand: oxnas: Release all devices in the _remove() path

oxnans_nand_remove() should release all MTD devices and clean all NAND
devices, not only the first one registered.

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-39-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/oxnas_nand.c