1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-26 22:31:06 +02:00

atheros: use the correct mtd erase callback in the spiflash driver

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17657 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-09-21 09:58:30 +00:00
parent 5953c890c0
commit f5f7f6efee

View File

@ -20,7 +20,7 @@
+obj-$(CONFIG_MTD_AR2315) += ar2315.o
--- /dev/null
+++ 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
@ -323,8 +323,7 @@
+ spiflash_wait_complete(priv, 20);
+
+ instr->state = MTD_ERASE_DONE;
+ if (instr->callback)
+ instr->callback(instr);
+ mtd_erase_callback(instr);
+
+ return 0;
+}