summaryrefslogtreecommitdiffstats
path: root/sys/dev/advansys/adv_eisa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/advansys/adv_eisa.c')
-rw-r--r--sys/dev/advansys/adv_eisa.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/advansys/adv_eisa.c b/sys/dev/advansys/adv_eisa.c
index 2da4d9d..d718938 100644
--- a/sys/dev/advansys/adv_eisa.c
+++ b/sys/dev/advansys/adv_eisa.c
@@ -145,16 +145,15 @@ adv_eisa_attach(device_t dev)
adv_b = NULL;
rid = 0;
- io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0, ~0, 1, RF_ACTIVE);
+ io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE);
if (!io) {
device_printf(dev, "No I/O space?!\n");
return ENOMEM;
}
rid = 0;
- irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid,
- 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE);
+ irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
+ RF_SHAREABLE | RF_ACTIVE);
if (!irq) {
device_printf(dev, "No irq?!\n");
bus_release_resource(dev, SYS_RES_IOPORT, 0, io);
OpenPOWER on IntegriCloud