diff options
Diffstat (limited to 'sys/dev/pcic')
-rw-r--r-- | sys/dev/pcic/i82365.c | 4 | ||||
-rw-r--r-- | sys/dev/pcic/i82365_isa.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pcic/i82365.c b/sys/dev/pcic/i82365.c index c1ded62..6582746 100644 --- a/sys/dev/pcic/i82365.c +++ b/sys/dev/pcic/i82365.c @@ -212,8 +212,8 @@ pcic_activate(device_t dev) } sc->irq_rid = 0; - sc->irq_res = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irq_rid, - 0, ~0, 1, RF_ACTIVE); + sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->irq_rid, + RF_ACTIVE); if (sc->irq_res) { sc->irq = rman_get_start(sc->irq_res); if ((err = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC, diff --git a/sys/dev/pcic/i82365_isa.c b/sys/dev/pcic/i82365_isa.c index af3d134..0a46415 100644 --- a/sys/dev/pcic/i82365_isa.c +++ b/sys/dev/pcic/i82365_isa.c @@ -297,7 +297,7 @@ pcic_isa_probe(device_t dev) if (bus_get_resource_start(dev, SYS_RES_IOPORT, 0) == 0) return (ENXIO); rid = 0; - res = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, RF_ACTIVE); + res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); if (res == NULL) { /* * No IRQ specified, find one. This can be due to the PnP |