From: Axel Lin Date: Fri, 3 Jun 2011 01:53:26 +0000 (+0800) Subject: mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove X-Git-Tag: v3.2-rc1~14^2~204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d80932b2dc497faa27e415c12f56f6ae1d087204;p=profile%2Fivi%2Fkernel-x86-ivi.git mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove Signed-off-by: Axel Lin Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/nand/nomadik_nand.c b/drivers/mtd/nand/nomadik_nand.c index b6a5c86..b463ecf 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);