]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
ioat: Use bus_alloc_resource_any(9)
authorcem <cem@FreeBSD.org>
Sat, 24 Oct 2015 23:46:20 +0000 (23:46 +0000)
committercem <cem@FreeBSD.org>
Sat, 24 Oct 2015 23:46:20 +0000 (23:46 +0000)
Sponsored by: EMC / Isilon Storage Division

sys/dev/ioat/ioat.c

index 9ffec6a9b8b5ff435a0a542ac6d5bdb9767989aa..694816d8456c677eb641c3e2eb4994c879c5dd8d 100644 (file)
@@ -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");