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-Url: https://git.stricted.de/?a=commitdiff_plain;h=c9f7ec30848637989b85a9f0ac5d4aa33c49916e;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 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); }