+obj-$(CONFIG_MTD_AR2315) += ar2315.o
--- /dev/null
+++ b/drivers/mtd/devices/ar2315.c
+obj-$(CONFIG_MTD_AR2315) += ar2315.o
--- /dev/null
+++ b/drivers/mtd/devices/ar2315.c
+
+/*
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315
+
+/*
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315
+ spiflash_wait_complete(priv, 20);
+
+ instr->state = MTD_ERASE_DONE;
+ spiflash_wait_complete(priv, 20);
+
+ instr->state = MTD_ERASE_DONE;
-+ if (instr->callback)
-+ instr->callback(instr);
++ mtd_erase_callback(instr);