mtd: add missing put_chip() in cfi_intelext_reset()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 30 05:59:02 EST 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c9f7ec30848637989b85a9f0ac5d4aa33c49916e
Commit:     c9f7ec30848637989b85a9f0ac5d4aa33c49916e
Parent:     f369c7ec94da63fc68cf7fa43516414888865c14
Author:     Nicolas Pitre <nico at fluxnic.net>
AuthorDate: Fri Oct 23 16:02:42 2009 -0400
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Nov 30 09:44:07 2009 +0000

    mtd: add missing put_chip() in cfi_intelext_reset()
    
    Signed-off-by: Nicolas Pitre <nico at fluxnic.net>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/chips/cfi_cmdset_0001.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
index e7563a9..d923a2d 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -2564,6 +2564,7 @@ static int cfi_intelext_reset(struct mtd_info *mtd)
 		if (!ret) {
 			map_write(map, CMD(0xff), chip->start);
 			chip->state = FL_SHUTDOWN;
+			put_chip(map, chip, chip->start);
 		}
 		spin_unlock(chip->mutex);
 	}



More information about the linux-mtd-cvs mailing list