[MTD] XIP for AMD CFI flash.
Author: Vitaly Wool <vwool@ru.mvista.com> Signed-off-by: Todd Poynor <tpoynor@mvista.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:

committed by
Thomas Gleixner

parent
0dfc62465e
commit
02b15e343a
@@ -58,10 +58,10 @@ static int fwh_xxlock_oneblock(struct map_info *map, struct flchip *chip,
|
||||
* to flash memory - that means that we don't have to check status
|
||||
* and timeout.
|
||||
*/
|
||||
cfi_spin_lock(chip->mutex);
|
||||
spin_lock(chip->mutex);
|
||||
ret = get_chip(map, chip, adr, FL_LOCKING);
|
||||
if (ret) {
|
||||
cfi_spin_unlock(chip->mutex);
|
||||
spin_unlock(chip->mutex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ static int fwh_xxlock_oneblock(struct map_info *map, struct flchip *chip,
|
||||
/* Done and happy. */
|
||||
chip->state = FL_READY;
|
||||
put_chip(map, chip, adr);
|
||||
cfi_spin_unlock(chip->mutex);
|
||||
spin_unlock(chip->mutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user