[PATCH] [MTD] [OneNAND] Do not release chip twice

Adrian Hunter ext-adrian.hunter at nokia.com
Thu Jan 24 09:16:40 EST 2008


>From 7adb82278aba483c2211e25e0927bdaa8c8a4363 Mon Sep 17 00:00:00 2001
From: Adrian Hunter <ext-adrian.hunter at nokia.com>
Date: Thu, 24 Jan 2008 12:48:37 +0200
Subject: [MTD] [OneNAND] Do not release chip twice

Signed-off-by: Adrian Hunter <ext-adrian.hunter at nokia.com>
---
 drivers/mtd/onenand/onenand_base.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 1b0b320..92768ea 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -1435,9 +1435,6 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
 		buf += thislen;
 	}
 
-	/* Deselect and wake up anyone waiting on the device */
-	onenand_release_device(mtd);
-
 	ops->retlen = written;
 
 	return ret;
-- 
1.4.4.2



More information about the linux-mtd mailing list