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:
Andrew Turner 2016-11-30 14:17:06 +00:00
parent f534f01f1a
commit d2314cb3b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309327

View file

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