aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-04-29 07:36:35 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-04-29 07:36:35 +0000
commit566114524e374888ffc34925c2ea9a8d1ff1c075 (patch)
tree7d76e6947368e30a2f98d9083df7b204622796ea /target
parent292dd8196fe685c7fa0fdb3af4b7e4a47e9ca777 (diff)
downloadupstream-566114524e374888ffc34925c2ea9a8d1ff1c075.tar.gz
upstream-566114524e374888ffc34925c2ea9a8d1ff1c075.tar.bz2
upstream-566114524e374888ffc34925c2ea9a8d1ff1c075.zip
adm5120: fix macronix bootloc patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31508 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/adm5120/patches-3.3/101-cfi_fixup_macronix_bootloc.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/adm5120/patches-3.3/101-cfi_fixup_macronix_bootloc.patch b/target/linux/adm5120/patches-3.3/101-cfi_fixup_macronix_bootloc.patch
index 5a7cc8e985..12f914a2a6 100644
--- a/target/linux/adm5120/patches-3.3/101-cfi_fixup_macronix_bootloc.patch
+++ b/target/linux/adm5120/patches-3.3/101-cfi_fixup_macronix_bootloc.patch
@@ -21,7 +21,7 @@
+/*
+ * Some Macronix chips has no/bad bootblock information in the CFI table
+ */
-+static void fixup_macronix_bootloc(struct mtd_info *mtd, void* param)
++static void fixup_macronix_bootloc(struct mtd_info *mtd)
+{
+ struct map_info *map = mtd->priv;
+ struct cfi_private *cfi = map->fldrv_priv;
@@ -60,7 +60,7 @@
{ CFI_MFR_ANY, CFI_ID_ANY, fixup_use_erase_chip },
{ CFI_MFR_ATMEL, AT49BV6416, fixup_use_atmel_lock },
+#ifdef CONFIG_MTD_CFI_FIXUP_MACRONIX_BOOTLOC
-+ { CFI_MFR_MACRONIX, CFI_ID_ANY, fixup_macronix_bootloc, NULL, },
++ { CFI_MFR_MACRONIX, CFI_ID_ANY, fixup_macronix_bootloc },
+#endif
{ 0, 0, NULL }
};