summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2009-10-23 16:02:42 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-11-30 09:44:07 +0000
commitc9f7ec30848637989b85a9f0ac5d4aa33c49916e (patch)
treeff01cd5ba206c170c20cf5f435e0a637ee57fd55 /drivers/mtd
parentf369c7ec94da63fc68cf7fa43516414888865c14 (diff)
downloadop-kernel-dev-c9f7ec30848637989b85a9f0ac5d4aa33c49916e.zip
op-kernel-dev-c9f7ec30848637989b85a9f0ac5d4aa33c49916e.tar.gz
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 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);
}
OpenPOWER on IntegriCloud