lkml.org 
[lkml]   [2011]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2/2] mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove
FromAxel Lin <>
DateFri, 03 Jun 2011 09:53:26 +0800
Signed-off-by: Axel Lin <axel.lin@gmail.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);
--
1.7.4.1




\
 
 \ /
  Last update: 2011-06-03 03:55    [from the cache]
©2003-2010