From: Nicolas Pitre Date: Fri, 23 Oct 2009 20:02:42 +0000 (-0400) Subject: mtd: add missing put_chip() in cfi_intelext_reset() X-Git-Tag: v2.6.33-rc1~66^2~44 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=c9f7ec30848637989b85a9f0ac5d4aa33c49916e;p=net-next-2.6.git mtd: add missing put_chip() in cfi_intelext_reset() Signed-off-by: Nicolas Pitre Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c index e7563a9872d..d923a2d88f9 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); }