From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lollipop.listbox.com (lollipop.listbox.com [208.210.124.78]) by ozlabs.org (Postfix) with ESMTP id 37AEE67C42 for ; Thu, 7 Dec 2006 13:28:46 +1100 (EST) Received: from rune.pobox.com (rune.pobox.com [208.210.124.79]) by lollipop.listbox.com (Postfix) with ESMTP id 6D58D48BDF7 for ; Wed, 6 Dec 2006 19:51:28 -0500 (EST) From: Nathan Lynch To: linuxppc-dev@ozlabs.org Subject: [PATCH 1/4] maple: match "pcie" name for CPC945 Date: Wed, 6 Dec 2006 18:50:43 -0600 Message-Id: <11654526463043-git-send-email-ntl@pobox.com> Cc: paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- 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