summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2009-10-24 00:02:42 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-11-30 12:44:07 +0300
commitc9f7ec30848637989b85a9f0ac5d4aa33c49916e (patch)
treeff01cd5ba206c170c20cf5f435e0a637ee57fd55 /drivers/mtd
parentf369c7ec94da63fc68cf7fa43516414888865c14 (diff)
downloadlinux-c9f7ec30848637989b85a9f0ac5d4aa33c49916e.tar.xz
mtd: add missing put_chip() in cfi_intelext_reset()
Signed-off-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/chips/cfi_cmdset_0001.c1
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 e7563a9872d0..d923a2d88f9c 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);
}