[PATCH] Do not skip PCI Express to PCI bridge when scanning OF node
Jon Loeliger
jdl at freescale.com
Thu Mar 8 05:35:41 EST 2007
From: Haiying Wang <haiying.wang at freescale.com>
Signed-off-by: Zhang Wei <wei.zhang at freescale.com>
Signed-off-by: Haiying Wang <haiying.wang at freescale.com>
Signed-off-by: Jon Loeliger <jdl at freescale.com>
---
arch/powerpc/kernel/prom_parse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c
index ea6fd55..0809977 100644
--- a/arch/powerpc/kernel/prom_parse.c
+++ b/arch/powerpc/kernel/prom_parse.c
@@ -267,7 +267,7 @@ int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq)
ppdev = pdev->bus->self;
/* Ouch, it's a host bridge... */
- if (ppdev == NULL) {
+ if (ppdev == NULL || ppdev->devfn == 0) {
#ifdef CONFIG_PPC64
ppnode = pci_bus_to_OF_node(pdev->bus);
#else
--
1.5.0.1.213.g509b
More information about the Linuxppc-dev
mailing list