chip->oldstate = FL_READY; 
static void cfi_intelext_sync (struct mtd_info *mtd){	struct map_info *map = mtd->priv;	struct cfi_private *cfi = map->fldrv_priv;	int i;	struct flchip *chip;	int ret = 0;	for (i=0; !ret && i<cfi->numchips; i++) {		chip = &cfi->chips[i];		spin_lock(chip->mutex);		ret = get_chip(map, chip, chip->start, FL_SYNCING);		if (!ret) {			chip->oldstate = chip->state;			chip->state = FL_SYNCING;			/* No need to wake_up() on this state change - 			 * as the whole point is that nobody can do anything			 * with the chip now anyway.			 */		}		spin_unlock(chip->mutex);	}	/* Unlock the chips again */	for (i--; i >=0; i--) {		chip = &cfi->chips[i];		spin_lock(chip->mutex);				if (chip->state == FL_SYNCING) {			chip->state = chip->oldstate;			wake_up(&chip->wq);		}		spin_unlock(chip->mutex);	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/09c7933547e383ab89ee1b08ec86899bef3035cf/cfi_cmdset_0001.c/clean/drivers/mtd/chips/cfi_cmdset_0001.c