git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: Stop updating erase_info->state and calling mtd_erase_callback()
[sfrench/cifs-2.6.git]
/
drivers
/
mtd
/
devices
/
mtd_dataflash.c
diff --git
a/drivers/mtd/devices/mtd_dataflash.c
b/drivers/mtd/devices/mtd_dataflash.c
index 5dc8bd042cc54b2d07407f123d0ee62bce738594..aaaeaae01e1dfea48f57115d7519b27dfcc64fd6 100644
(file)
--- a/
drivers/mtd/devices/mtd_dataflash.c
+++ b/
drivers/mtd/devices/mtd_dataflash.c
@@
-220,10
+220,6
@@
static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr)
}
mutex_unlock(&priv->lock);
- /* Inform MTD subsystem that erase is complete */
- instr->state = MTD_ERASE_DONE;
- mtd_erase_callback(instr);
-
return 0;
}