summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt/mpt_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mpt/mpt_pci.c')
-rw-r--r--sys/dev/mpt/mpt_pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c
index fe77323..ecceb6d 100644
--- a/sys/dev/mpt/mpt_pci.c
+++ b/sys/dev/mpt/mpt_pci.c
@@ -523,8 +523,8 @@ mpt_pci_attach(device_t dev)
* some cards otherwise).
*/
mpt->pci_pio_rid = PCIR_BAR(mpt_io_bar);
- mpt->pci_pio_reg = bus_alloc_resource(dev, SYS_RES_IOPORT,
- &mpt->pci_pio_rid, 0, ~0, 0, RF_ACTIVE);
+ mpt->pci_pio_reg = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
+ &mpt->pci_pio_rid, RF_ACTIVE);
if (mpt->pci_pio_reg == NULL) {
device_printf(dev, "unable to map registers in PIO mode\n");
goto bad;
@@ -534,8 +534,8 @@ mpt_pci_attach(device_t dev)
/* Allocate kernel virtual memory for the 9x9's Mem0 region */
mpt->pci_mem_rid = PCIR_BAR(mpt_mem_bar);
- mpt->pci_reg = bus_alloc_resource(dev, SYS_RES_MEMORY,
- &mpt->pci_mem_rid, 0, ~0, 0, RF_ACTIVE);
+ mpt->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
+ &mpt->pci_mem_rid, RF_ACTIVE);
if (mpt->pci_reg == NULL) {
device_printf(dev, "Unable to memory map registers.\n");
if (mpt->is_sas) {
OpenPOWER on IntegriCloud