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 2016-11-30 14:17:06 +00:00
parent 83d1024582
commit 73431e62ab

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