mtd: nand: Provide nand_cleanup() function to free NAND related resources

Provide a nand_cleanup() function to free all nand related resources
without unregistering the mtd device.
This should allow drivers to call mtd_device_unregister() and handle
its return value and still being able to cleanup all nand related
resources.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Daniel Walter <dwalter@sigma-star.at>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
This commit is contained in:
Richard Weinberger 2016-09-21 11:44:41 +02:00 • committed by Boris Brezillon
commit d44154f969
2 changed files with 19 additions and 8 deletions