diff options
Diffstat (limited to 'sys/dev/vx/if_vx_eisa.c')
-rw-r--r-- | sys/dev/vx/if_vx_eisa.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/vx/if_vx_eisa.c b/sys/dev/vx/if_vx_eisa.c index 4c8931d..faf3f9d 100644 --- a/sys/dev/vx/if_vx_eisa.c +++ b/sys/dev/vx/if_vx_eisa.c @@ -122,16 +122,14 @@ vx_eisa_attach(device_t dev) * driver comes first. */ 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"); goto bad; } rid = 1; - eisa_io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, - 0, ~0, 1, RF_ACTIVE); + eisa_io = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); if (!eisa_io) { device_printf(dev, "No I/O space?!\n"); goto bad; @@ -144,8 +142,7 @@ vx_eisa_attach(device_t dev) sc->bsh = rman_get_bushandle(io); rid = 0; - irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, - 0, ~0, 1, RF_ACTIVE); + irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); if (!irq) { device_printf(dev, "No irq?!\n"); goto bad; |