From 00d3c930da5298e04be65a120f8a9ea6fbb526ed Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Mon, 12 Dec 2005 16:07:11 +0000 Subject: [PATCH] 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(). --- sys/sparc64/pci/ofw_pcib_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sparc64/pci/ofw_pcib_subr.c b/sys/sparc64/pci/ofw_pcib_subr.c index 80f6d5f95292..6e9620eda901 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