diff mbox

[2/2] mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove

Message ID 1307066006.10001.4.camel@phoenix
State Accepted
Commit d80932b2dc497faa27e415c12f56f6ae1d087204
Headers show

Commit Message

Axel Lin June 3, 2011, 1:53 a.m. UTC
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/mtd/nand/nomadik_nand.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Artem Bityutskiy June 6, 2011, 10:19 a.m. UTC | #1
On Fri, 2011-06-03 at 09:53 +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
>  drivers/mtd/nand/nomadik_nand.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Pushed to l2-mtd-2.6.git, thanks!
diff mbox

Patch

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