mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 15:35:30 +02:00
ar71xx: fix RB-450G board detection (closes: #6453)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19030 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bb578d711b
commit
9577aad664
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
char *mips_machine_name = "Unknown";
|
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) {
|
+ list_for_each(this, &mips_machines) {
|
||||||
+ mach = list_entry(this, struct mips_machine, list);
|
+ mach = list_entry(this, struct mips_machine, list);
|
||||||
+ if (strncmp(mach->mach_id, mips_machid,
|
+ if (mach->mach_id == NULL)
|
||||||
+ strlen(mips_machid)) == 0
|
+ continue;
|
||||||
+ ) {
|
+
|
||||||
|
+ if (strcmp(mach->mach_id, mips_machid) == 0) {
|
||||||
+ mips_machtype = mach->mach_type;
|
+ mips_machtype = mach->mach_type;
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+ }
|
+ }
|
||||||
@ -78,7 +79,7 @@
|
|||||||
+ list_for_each(this, &mips_machines) {
|
+ list_for_each(this, &mips_machines) {
|
||||||
+ mach = list_entry(this, struct mips_machine, list);
|
+ mach = list_entry(this, struct mips_machine, list);
|
||||||
+ printk(KERN_WARNING "%32s %s\n",
|
+ printk(KERN_WARNING "%32s %s\n",
|
||||||
+ mach->mach_id, mach->mach_name);
|
+ mach->mach_id ? mach->mach_id : "", mach->mach_name);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ return 0;
|
+ return 0;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
char *mips_machine_name = "Unknown";
|
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) {
|
+ list_for_each(this, &mips_machines) {
|
||||||
+ mach = list_entry(this, struct mips_machine, list);
|
+ mach = list_entry(this, struct mips_machine, list);
|
||||||
+ if (strncmp(mach->mach_id, mips_machid,
|
+ if (mach->mach_id == NULL)
|
||||||
+ strlen(mips_machid)) == 0
|
+ continue;
|
||||||
+ ) {
|
+
|
||||||
|
+ if (strcmp(mach->mach_id, mips_machid) == 0) {
|
||||||
+ mips_machtype = mach->mach_type;
|
+ mips_machtype = mach->mach_type;
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+ }
|
+ }
|
||||||
@ -78,7 +79,7 @@
|
|||||||
+ list_for_each(this, &mips_machines) {
|
+ list_for_each(this, &mips_machines) {
|
||||||
+ mach = list_entry(this, struct mips_machine, list);
|
+ mach = list_entry(this, struct mips_machine, list);
|
||||||
+ printk(KERN_WARNING "%32s %s\n",
|
+ printk(KERN_WARNING "%32s %s\n",
|
||||||
+ mach->mach_id, mach->mach_name);
|
+ mach->mach_id ? mach->mach_id : "", mach->mach_name);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ return 0;
|
+ return 0;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
char *mips_machine_name = "Unknown";
|
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) {
|
+ list_for_each(this, &mips_machines) {
|
||||||
+ mach = list_entry(this, struct mips_machine, list);
|
+ mach = list_entry(this, struct mips_machine, list);
|
||||||
+ if (strncmp(mach->mach_id, mips_machid,
|
+ if (mach->mach_id == NULL)
|
||||||
+ strlen(mips_machid)) == 0
|
+ continue;
|
||||||
+ ) {
|
+
|
||||||
|
+ if (strcmp(mach->mach_id, mips_machid) == 0) {
|
||||||
+ mips_machtype = mach->mach_type;
|
+ mips_machtype = mach->mach_type;
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+ }
|
+ }
|
||||||
@ -78,7 +79,7 @@
|
|||||||
+ list_for_each(this, &mips_machines) {
|
+ list_for_each(this, &mips_machines) {
|
||||||
+ mach = list_entry(this, struct mips_machine, list);
|
+ mach = list_entry(this, struct mips_machine, list);
|
||||||
+ printk(KERN_WARNING "%32s %s\n",
|
+ printk(KERN_WARNING "%32s %s\n",
|
||||||
+ mach->mach_id, mach->mach_name);
|
+ mach->mach_id ? mach->mach_id : "", mach->mach_name);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ return 0;
|
+ return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user