Skip to content

Commit

Permalink
mtd: add missing put_chip() in cfi_intelext_reset()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Pitre authored and David Woodhouse committed Nov 30, 2009
1 parent f369c7e commit c9f7ec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/chips/cfi_cmdset_0001.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c9f7ec3

Please sign in to comment.