mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 03:04:01 +08:00
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>
This commit is contained in:
parent
f369c7ec94
commit
c9f7ec3084
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user