aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_sabre.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/kernel/pci_sabre.c')
-rw-r--r--arch/sparc64/kernel/pci_sabre.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/pci_sabre.c b/arch/sparc64/kernel/pci_sabre.c
index 91d1aa44efc1..4ce7b4620c09 100644
--- a/arch/sparc64/kernel/pci_sabre.c
+++ b/arch/sparc64/kernel/pci_sabre.c
@@ -1455,16 +1455,13 @@ void sabre_init(struct device_node *dp, char *model_name)
1455 hummingbird_p = 1; 1455 hummingbird_p = 1;
1456 } 1456 }
1457 if (!hummingbird_p) { 1457 if (!hummingbird_p) {
1458 char compat[64]; 1458 struct device_node *dp;
1459 int cpu_node;
1460 1459
1461 /* Of course, Sun has to encode things a thousand 1460 /* Of course, Sun has to encode things a thousand
1462 * different ways, inconsistently. 1461 * different ways, inconsistently.
1463 */ 1462 */
1464 cpu_find_by_instance(0, &cpu_node, NULL); 1463 cpu_find_by_instance(0, &dp, NULL);
1465 if (prom_getproperty(cpu_node, "name", 1464 if (!strcmp(dp->name, "SUNW,UltraSPARC-IIe"))
1466 compat, sizeof(compat)) > 0 &&
1467 !strcmp(compat, "SUNW,UltraSPARC-IIe"))
1468 hummingbird_p = 1; 1465 hummingbird_p = 1;
1469 } 1466 }
1470 } 1467 }