diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-09-21 09:58:30 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-09-21 09:58:30 +0000 |
commit | f5f7f6efeead53d7cedc9af0135a6c4b95a0eea5 (patch) | |
tree | f7d5245ac311ad536b4d1c7bef7616c8486ee7a4 /target | |
parent | 5953c890c0c1a4eacecf67eb03431cac8b121a2c (diff) |
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
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/atheros/patches-2.6.30/120-spiflash.patch | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target/linux/atheros/patches-2.6.30/120-spiflash.patch b/target/linux/atheros/patches-2.6.30/120-spiflash.patch index 74f01f6525..e632060075 100644 --- a/target/linux/atheros/patches-2.6.30/120-spiflash.patch +++ b/target/linux/atheros/patches-2.6.30/120-spiflash.patch @@ -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; +} |