mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
ioat: Use bus_alloc_resource_any(9)
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
8f27463708
commit
e88e14b9f0
1 changed files with 2 additions and 2 deletions
|
|
@ -451,8 +451,8 @@ ioat_map_pci_bar(struct ioat_softc *ioat)
|
|||
{
|
||||
|
||||
ioat->pci_resource_id = PCIR_BAR(0);
|
||||
ioat->pci_resource = bus_alloc_resource(ioat->device, SYS_RES_MEMORY,
|
||||
&ioat->pci_resource_id, 0, ~0, 1, RF_ACTIVE);
|
||||
ioat->pci_resource = bus_alloc_resource_any(ioat->device,
|
||||
SYS_RES_MEMORY, &ioat->pci_resource_id, RF_ACTIVE);
|
||||
|
||||
if (ioat->pci_resource == NULL) {
|
||||
ioat_log_message(0, "unable to allocate pci resource\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue