linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] maple: match "pcie" name for CPC945
@ 2006-12-07  0:50 Nathan Lynch
  2006-12-07  0:50 ` [PATCH 2/4] maple: select PPC_RTAS Nathan Lynch
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Nathan Lynch @ 2006-12-07  0:50 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: paulus

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>
---
 arch/powerpc/platforms/maple/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/platforms/maple/pci.c b/arch/powerpc/platforms/maple/pci.c
index 3a32ded..3f6a69f 100644
--- a/arch/powerpc/platforms/maple/pci.c
+++ b/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;) {
 		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);
 		}
-- 
1.4.4.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-12-12 22:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07  0:50 [PATCH 1/4] maple: match "pcie" name for CPC945 Nathan Lynch
2006-12-07  0:50 ` [PATCH 2/4] maple: select PPC_RTAS Nathan Lynch
2006-12-07  0:50   ` [PATCH 3/4] add rtas_service_present() helper Nathan Lynch
2006-12-07  0:50     ` [PATCH 4/4] maple: use RTAS for reboot and halt Nathan Lynch
2006-12-07  2:51     ` [PATCH 3/4] add rtas_service_present() helper Michael Ellerman
2006-12-07  3:25       ` Nathan Lynch
2006-12-07 21:05       ` Linas Vepstas
2006-12-07  3:20 ` [PATCH 1/4] maple: match "pcie" name for CPC945 Olof Johansson
2006-12-07  8:41   ` Segher Boessenkool
2006-12-07  8:30 ` Segher Boessenkool
2006-12-11 22:38   ` Nathan Lynch
2006-12-12 22:26     ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).