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().
This commit is contained in:
Marius Strobl 2005-12-12 16:07:11 +00:00
parent 8af06aba63
commit 00d3c930da

View file

@ -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