atheros: use the correct mtd erase callback in the spiflash driver
authorFelix Fietkau <nbd@openwrt.org>
Mon, 21 Sep 2009 09:58:30 +0000 (09:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 21 Sep 2009 09:58:30 +0000 (09:58 +0000)
SVN-Revision: 17657

target/linux/atheros/patches-2.6.30/120-spiflash.patch

index 74f01f652564ea9d9f5d3e204aebff2576221442..e632060075007d7071b6627e7a1096cfd4285085 100644 (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
 +      spiflash_wait_complete(priv, 20);
 +
 +      instr->state = MTD_ERASE_DONE;
-+      if (instr->callback)
-+              instr->callback(instr);
++      mtd_erase_callback(instr);
 +
 +      return 0;
 +}