atheros: use the correct mtd erase callback in the spiflash driver
SVN-Revision: 17657
This commit is contained in:
parent
b1f1f7c5a9
commit
239f30c87f
1 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
||||||
+obj-$(CONFIG_MTD_AR2315) += ar2315.o
|
+obj-$(CONFIG_MTD_AR2315) += ar2315.o
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/mtd/devices/ar2315.c
|
+++ b/drivers/mtd/devices/ar2315.c
|
||||||
@@ -0,0 +1,518 @@
|
@@ -0,0 +1,517 @@
|
||||||
+
|
+
|
||||||
+/*
|
+/*
|
||||||
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315
|
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315
|
||||||
|
@ -323,8 +323,7 @@
|
||||||
+ spiflash_wait_complete(priv, 20);
|
+ spiflash_wait_complete(priv, 20);
|
||||||
+
|
+
|
||||||
+ instr->state = MTD_ERASE_DONE;
|
+ instr->state = MTD_ERASE_DONE;
|
||||||
+ if (instr->callback)
|
+ mtd_erase_callback(instr);
|
||||||
+ instr->callback(instr);
|
|
||||||
+
|
+
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+}
|
+}
|
||||||
|
|
Loading…
Reference in a new issue