mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
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:
parent
8af06aba63
commit
00d3c930da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153342
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user