mtd: nand: remove doubled chip deselection on (un)lock

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue May 24 21:59:03 EDT 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c2aad6d6585c320ed5e111db5e03d27e901dfa81
Commit:     c2aad6d6585c320ed5e111db5e03d27e901dfa81
Parent:     ac497c1602555c908c9738fa93b1145f431d1876
Author:     Jiri Pinkava <jiri.pinkava at vscht.cz>
AuthorDate: Wed Apr 13 12:26:48 2011 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Wed May 25 01:53:22 2011 +0100

    mtd: nand: remove doubled chip deselection on (un)lock
    
    Chip deselection is already done in nand_release_device. So only
    duplicate code.
    
    Signed-off-by: Jiri Pinkava <jiri.pinkava at vscht.cz>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/nand_base.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index c54a4cb..bc1c2e6 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -976,9 +976,6 @@ int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	ret = __nand_unlock(mtd, ofs, len, 0);
 
 out:
-	/* de-select the NAND device */
-	chip->select_chip(mtd, -1);
-
 	nand_release_device(mtd);
 
 	return ret;
@@ -1046,9 +1043,6 @@ int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	ret = __nand_unlock(mtd, ofs, len, 0x1);
 
 out:
-	/* de-select the NAND device */
-	chip->select_chip(mtd, -1);
-
 	nand_release_device(mtd);
 
 	return ret;



More information about the linux-mtd-cvs mailing list