summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_rl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_rl.c')
-rw-r--r--sys/pci/if_rl.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index b5299f4..b70166a 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.c
@@ -857,8 +857,8 @@ rl_probe(dev)
* so we can read the chip ID register.
*/
rid = RL_RID;
- sc->rl_res = bus_alloc_resource(dev, RL_RES, &rid,
- 0, ~0, 1, RF_ACTIVE);
+ sc->rl_res = bus_alloc_resource_any(dev, RL_RES, &rid,
+ RF_ACTIVE);
if (sc->rl_res == NULL) {
device_printf(dev,
"couldn't map ports/memory\n");
@@ -947,8 +947,7 @@ rl_attach(dev)
pci_enable_busmaster(dev);
rid = RL_RID;
- sc->rl_res = bus_alloc_resource(dev, RL_RES, &rid,
- 0, ~0, 1, RF_ACTIVE);
+ sc->rl_res = bus_alloc_resource_any(dev, RL_RES, &rid, RF_ACTIVE);
if (sc->rl_res == NULL) {
printf ("rl%d: couldn't map ports/memory\n", unit);
@@ -974,7 +973,7 @@ rl_attach(dev)
/* Allocate interrupt */
rid = 0;
- sc->rl_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1,
+ sc->rl_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
RF_SHAREABLE | RF_ACTIVE);
if (sc->rl_irq == NULL) {
OpenPOWER on IntegriCloud