summaryrefslogtreecommitdiffstats
path: root/sys/dev/sf/if_sf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sf/if_sf.c')
-rw-r--r--sys/dev/sf/if_sf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c
index 980c577..92e7002 100644
--- a/sys/dev/sf/if_sf.c
+++ b/sys/dev/sf/if_sf.c
@@ -703,8 +703,7 @@ sf_attach(dev)
pci_enable_busmaster(dev);
rid = SF_RID;
- sc->sf_res = bus_alloc_resource(dev, SF_RES, &rid,
- 0, ~0, 1, RF_ACTIVE);
+ sc->sf_res = bus_alloc_resource_any(dev, SF_RES, &rid, RF_ACTIVE);
if (sc->sf_res == NULL) {
printf ("sf%d: couldn't map ports\n", unit);
@@ -717,7 +716,7 @@ sf_attach(dev)
/* Allocate interrupt */
rid = 0;
- sc->sf_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1,
+ sc->sf_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
RF_SHAREABLE | RF_ACTIVE);
if (sc->sf_irq == NULL) {
OpenPOWER on IntegriCloud