Browse Source

[POWERPC] maple: Match "pcie" name for CPC945

Some firmwares have "pcie" for the "name" property of the CPC945 PCI
Express host bridge.  Check for "pcie" in addition to "pci" so we
don't miss it.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Nathan Lynch 18 years ago
parent
commit
17877116c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/powerpc/platforms/maple/pci.c

+ 1 - 1
arch/powerpc/platforms/maple/pci.c

@@ -562,7 +562,7 @@ void __init maple_pci_init(void)
 	for (np = NULL; (np = of_get_next_child(root, np)) != NULL;) {
 	for (np = NULL; (np = of_get_next_child(root, np)) != NULL;) {
 		if (np->name == NULL)
 		if (np->name == NULL)
 			continue;
 			continue;
-		if (strcmp(np->name, "pci") == 0) {
+		if (!strcmp(np->name, "pci") || !strcmp(np->name, "pcie")) {
 			if (add_bridge(np) == 0)
 			if (add_bridge(np) == 0)
 				of_node_get(np);
 				of_node_get(np);
 		}
 		}