Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17877116 authored by Nathan Lynch's avatar Nathan Lynch Committed by Paul Mackerras
Browse files

[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: default avatarNathan Lynch <ntl@pobox.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 2c1d2f34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
		}