summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2005-12-12 16:07:11 +0000
committermarius <marius@FreeBSD.org>2005-12-12 16:07:11 +0000
commit6bbb42473d36a2eac0626469eb5ade3e0cc1b7e1 (patch)
tree0792cdb4382743abe96266832b154b9cd77f3b68 /sys/sparc64/pci
parent101ce2716d18e8396c32ed27b8cf5a5a1d92b7dd (diff)
downloadFreeBSD-src-6bbb42473d36a2eac0626469eb5ade3e0cc1b7e1.zip
FreeBSD-src-6bbb42473d36a2eac0626469eb5ade3e0cc1b7e1.tar.gz
Fix a bug introduced in rev. 1.5; for retrieving the device_t of the
parent bridge of a PCI-PCI bridge we need two device_get_parent().
Diffstat (limited to 'sys/sparc64/pci')
-rw-r--r--sys/sparc64/pci/ofw_pcib_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/pci/ofw_pcib_subr.c b/sys/sparc64/pci/ofw_pcib_subr.c
index 80f6d5f..6e9620e 100644
--- a/sys/sparc64/pci/ofw_pcib_subr.c
+++ b/sys/sparc64/pci/ofw_pcib_subr.c
@@ -108,8 +108,8 @@ ofw_pcib_gen_route_interrupt(device_t bridge, device_t dev, int intpin)
return (pcib_route_interrupt(bridge, dev, intpin));
}
/* Try at the parent. */
- return (PCIB_ROUTE_INTERRUPT(device_get_parent(bridge), bridge,
- intpin));
+ return (PCIB_ROUTE_INTERRUPT(device_get_parent(device_get_parent(
+ bridge)), bridge, intpin));
}
phandle_t
OpenPOWER on IntegriCloud