summaryrefslogtreecommitdiffstats
path: root/sys/dev/sbni
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sbni')
-rw-r--r--sys/dev/sbni/if_sbni_isa.c4
-rw-r--r--sys/dev/sbni/if_sbni_pci.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sbni/if_sbni_isa.c b/sys/dev/sbni/if_sbni_isa.c
index cb7b02c..0cd88ba 100644
--- a/sys/dev/sbni/if_sbni_isa.c
+++ b/sys/dev/sbni/if_sbni_isa.c
@@ -116,8 +116,8 @@ sbni_attach_isa(device_t dev)
printf("sbni%d: <Granch SBNI12/ISA adapter> port 0x%lx",
next_sbni_unit, rman_get_start(sc->io_res));
- sc->irq_res = bus_alloc_resource(
- dev, SYS_RES_IRQ, &sc->irq_rid, 0ul, ~0ul, 1, RF_ACTIVE);
+ sc->irq_res = bus_alloc_resource_any(
+ dev, SYS_RES_IRQ, &sc->irq_rid, RF_ACTIVE);
if (sc->irq_res) {
printf(" irq %ld\n", rman_get_start(sc->irq_res));
diff --git a/sys/dev/sbni/if_sbni_pci.c b/sys/dev/sbni/if_sbni_pci.c
index bba4f24..92e864e 100644
--- a/sys/dev/sbni/if_sbni_pci.c
+++ b/sys/dev/sbni/if_sbni_pci.c
@@ -131,8 +131,8 @@ sbni_pci_attach(device_t dev)
printf("sbni%d: <Granch SBNI12/PCI%sadapter> port 0x%lx",
next_sbni_unit, sc->slave_sc ? " Dual " : " ",
rman_get_start(sc->io_res));
- sc->irq_res = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irq_rid,
- 0ul, ~0ul, 1, RF_SHAREABLE);
+ sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->irq_rid,
+ RF_SHAREABLE);
if (sc->irq_res) {
printf(" irq %ld\n", rman_get_start(sc->irq_res));
OpenPOWER on IntegriCloud