diff options
Diffstat (limited to 'sys/dev/scd/scd_isa.c')
-rw-r--r-- | sys/dev/scd/scd_isa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/scd/scd_isa.c b/sys/dev/scd/scd_isa.c index c905ec0..da2fe6a 100644 --- a/sys/dev/scd/scd_isa.c +++ b/sys/dev/scd/scd_isa.c @@ -128,8 +128,8 @@ scd_alloc_resources (device_t dev) error = 0; if (sc->port_type) { - sc->port = bus_alloc_resource(dev, sc->port_type, &sc->port_rid, - 0, ~0, 1, RF_ACTIVE); + sc->port = bus_alloc_resource_any(dev, sc->port_type, + &sc->port_rid, RF_ACTIVE); if (sc->port == NULL) { device_printf(dev, "Unable to allocate PORT resource.\n"); error = ENOMEM; |