mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 7 11:59:05 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d80932b2dc497faa27e415c12f56f6ae1d087204
Commit:     d80932b2dc497faa27e415c12f56f6ae1d087204
Parent:     43c6871cae298e28700ca1ea76dc94b5f69446bc
Author:     Axel Lin <axel.lin at gmail.com>
AuthorDate: Fri Jun 3 09:53:26 2011 +0800
Committer:  Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:01:59 2011 +0300

    mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove
    
    Signed-off-by: Axel Lin <axel.lin at gmail.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
 drivers/mtd/nand/nomadik_nand.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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);



More information about the linux-mtd-cvs mailing list