summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-01-04 14:28:20 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-01-04 14:28:20 +0000
commit8113f1ae11e5e049c9e54b4c68e700cf8d501723 (patch)
tree85c464be8fd6d21f654b3189160c6a1e9cefa34e /target
parent4dbf116c5f8919a56941dd905ff09d6ef428042e (diff)
downloadmaster-31e0f0ae-8113f1ae11e5e049c9e54b4c68e700cf8d501723.tar.gz
master-31e0f0ae-8113f1ae11e5e049c9e54b4c68e700cf8d501723.tar.bz2
master-31e0f0ae-8113f1ae11e5e049c9e54b4c68e700cf8d501723.zip
ar71xx: fix RB-450G board detection (closes: #6453)
SVN-Revision: 19030
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/patches-2.6.30/400-mips-multi-machine-update.patch11
-rw-r--r--target/linux/ar71xx/patches-2.6.31/400-mips-multi-machine-update.patch11
-rw-r--r--target/linux/ar71xx/patches-2.6.32/400-mips-multi-machine-update.patch11
3 files changed, 18 insertions, 15 deletions
diff --git a/target/linux/ar71xx/patches-2.6.30/400-mips-multi-machine-update.patch b/target/linux/ar71xx/patches-2.6.30/400-mips-multi-machine-update.patch
index 62903c8660..78646210ec 100644
--- a/target/linux/ar71xx/patches-2.6.30/400-mips-multi-machine-update.patch
+++ b/target/linux/ar71xx/patches-2.6.30/400-mips-multi-machine-update.patch
@@ -15,7 +15,7 @@
char *mips_machine_name = "Unknown";
-@@ -55,20 +56,64 @@ void __init mips_machine_set_name(char *
+@@ -55,20 +56,65 @@ void __init mips_machine_set_name(char *
}
}
@@ -62,9 +62,10 @@
+
+ list_for_each(this, &mips_machines) {
+ mach = list_entry(this, struct mips_machine, list);
-+ if (strncmp(mach->mach_id, mips_machid,
-+ strlen(mips_machid)) == 0
-+ ) {
++ if (mach->mach_id == NULL)
++ continue;
++
++ if (strcmp(mach->mach_id, mips_machid) == 0) {
+ mips_machtype = mach->mach_type;
+ return 0;
+ }
@@ -78,7 +79,7 @@
+ list_for_each(this, &mips_machines) {
+ mach = list_entry(this, struct mips_machine, list);
+ printk(KERN_WARNING "%32s %s\n",
-+ mach->mach_id, mach->mach_name);
++ mach->mach_id ? mach->mach_id : "", mach->mach_name);
+ }
+
+ return 0;
diff --git a/target/linux/ar71xx/patches-2.6.31/400-mips-multi-machine-update.patch b/target/linux/ar71xx/patches-2.6.31/400-mips-multi-machine-update.patch
index 62903c8660..78646210ec 100644
--- a/target/linux/ar71xx/patches-2.6.31/400-mips-multi-machine-update.patch
+++ b/target/linux/ar71xx/patches-2.6.31/400-mips-multi-machine-update.patch
@@ -15,7 +15,7 @@
char *mips_machine_name = "Unknown";
-@@ -55,20 +56,64 @@ void __init mips_machine_set_name(char *
+@@ -55,20 +56,65 @@ void __init mips_machine_set_name(char *
}
}
@@ -62,9 +62,10 @@
+
+ list_for_each(this, &mips_machines) {
+ mach = list_entry(this, struct mips_machine, list);
-+ if (strncmp(mach->mach_id, mips_machid,
-+ strlen(mips_machid)) == 0
-+ ) {
++ if (mach->mach_id == NULL)
++ continue;
++
++ if (strcmp(mach->mach_id, mips_machid) == 0) {
+ mips_machtype = mach->mach_type;
+ return 0;
+ }
@@ -78,7 +79,7 @@
+ list_for_each(this, &mips_machines) {
+ mach = list_entry(this, struct mips_machine, list);
+ printk(KERN_WARNING "%32s %s\n",
-+ mach->mach_id, mach->mach_name);
++ mach->mach_id ? mach->mach_id : "", mach->mach_name);
+ }
+
+ return 0;
diff --git a/target/linux/ar71xx/patches-2.6.32/400-mips-multi-machine-update.patch b/target/linux/ar71xx/patches-2.6.32/400-mips-multi-machine-update.patch
index 62903c8660..78646210ec 100644
--- a/target/linux/ar71xx/patches-2.6.32/400-mips-multi-machine-update.patch
+++ b/target/linux/ar71xx/patches-2.6.32/400-mips-multi-machine-update.patch
@@ -15,7 +15,7 @@
char *mips_machine_name = "Unknown";
-@@ -55,20 +56,64 @@ void __init mips_machine_set_name(char *
+@@ -55,20 +56,65 @@ void __init mips_machine_set_name(char *
}
}
@@ -62,9 +62,10 @@
+
+ list_for_each(this, &mips_machines) {
+ mach = list_entry(this, struct mips_machine, list);
-+ if (strncmp(mach->mach_id, mips_machid,
-+ strlen(mips_machid)) == 0
-+ ) {
++ if (mach->mach_id == NULL)
++ continue;
++
++ if (strcmp(mach->mach_id, mips_machid) == 0) {
+ mips_machtype = mach->mach_type;
+ return 0;
+ }
@@ -78,7 +79,7 @@
+ list_for_each(this, &mips_machines) {
+ mach = list_entry(this, struct mips_machine, list);
+ printk(KERN_WARNING "%32s %s\n",
-+ mach->mach_id, mach->mach_name);
++ mach->mach_id ? mach->mach_id : "", mach->mach_name);
+ }
+
+ return 0;