diff options
author | njl <njl@FreeBSD.org> | 2004-03-17 17:50:55 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-03-17 17:50:55 +0000 |
commit | 05a1f56fc999f634406946e831eea6deaaa75a99 (patch) | |
tree | a1c3f00139d832c8e80338cfc56c8b1aaffd88ab /sys/dev/mcd | |
parent | 2283471bb53a546e9d7dfb662c8db5ca06907c85 (diff) | |
download | FreeBSD-src-05a1f56fc999f634406946e831eea6deaaa75a99.zip FreeBSD-src-05a1f56fc999f634406946e831eea6deaaa75a99.tar.gz |
Convert callers to the new bus_alloc_resource_any(9) API.
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
Diffstat (limited to 'sys/dev/mcd')
-rw-r--r-- | sys/dev/mcd/mcd_isa.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/mcd/mcd_isa.c b/sys/dev/mcd/mcd_isa.c index 3c78749..f631672 100644 --- a/sys/dev/mcd/mcd_isa.c +++ b/sys/dev/mcd/mcd_isa.c @@ -129,8 +129,8 @@ mcd_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; @@ -141,8 +141,8 @@ mcd_alloc_resources (device_t dev) } if (sc->irq_type) { - sc->irq = bus_alloc_resource(dev, sc->irq_type, &sc->irq_rid, - 0, ~0, 1, RF_ACTIVE); + sc->irq = bus_alloc_resource_any(dev, sc->irq_type, + &sc->irq_rid, RF_ACTIVE); if (sc->irq == NULL) { device_printf(dev, "Unable to allocate IRQ resource.\n"); error = ENOMEM; @@ -151,8 +151,8 @@ mcd_alloc_resources (device_t dev) } if (sc->drq_type) { - sc->drq = bus_alloc_resource(dev, sc->drq_type, &sc->drq_rid, - 0, ~0, 1, RF_ACTIVE); + sc->drq = bus_alloc_resource_any(dev, sc->drq_type, + &sc->drq_rid, RF_ACTIVE); if (sc->drq == NULL) { device_printf(dev, "Unable to allocate DRQ resource.\n"); error = ENOMEM; |