]> err.no Git - linux-2.6/commitdiff
[POWERPC] maple: Match "pcie" name for CPC945
authorNathan Lynch <ntl@pobox.com>
Thu, 7 Dec 2006 00:50:43 +0000 (18:50 -0600)
committerPaul Mackerras <paulus@samba.org>
Fri, 8 Dec 2006 06:10:22 +0000 (17:10 +1100)
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>
arch/powerpc/platforms/maple/pci.c

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