mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Fix the alloc function the ThunderX PCIe driver calls, the previous
function may not exist when FDT is removed from the kernel. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
f534f01f1a
commit
d2314cb3b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309327
|
@ -204,7 +204,7 @@ thunder_pcie_alloc_resource(device_t dev, device_t child, int type, int *rid,
|
|||
end = start + count - 1;
|
||||
}
|
||||
|
||||
return (pci_host_generic_alloc_resource(dev, child, type, rid, start,
|
||||
end, count, flags));
|
||||
return (pci_host_generic_core_alloc_resource(dev, child, type, rid,
|
||||
start, end, count, flags));
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue