mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove
authorAxel Lin <axel.lin@gmail.com>
Fri, 3 Jun 2011 01:53:26 +0000 (09:53 +0800)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:01:59 +0000 (15:01 +0300)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/nand/nomadik_nand.c

index b6a5c86ab31e922e1ddcf81dc88257012d61ad08..b463ecfb4c1a248713073ab019efed1af2f3d538 100644 (file)
@@ -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);