summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/nomadik_nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/nomadik_nand.c')
-rw-r--r--drivers/mtd/nand/nomadik_nand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nomadik_nand.c b/drivers/mtd/nand/nomadik_nand.c
index b6a5c86ab31e..b463ecfb4c1a 100644
--- a/drivers/mtd/nand/nomadik_nand.c
+++ b/drivers/mtd/nand/nomadik_nand.c
@@ -187,6 +187,7 @@ static int nomadik_nand_remove(struct platform_device *pdev)
pdata->exit();
if (host) {
+ nand_release(&host->mtd);
iounmap(host->cmd_va);
iounmap(host->data_va);
iounmap(host->addr_va);