From 05a1f56fc999f634406946e831eea6deaaa75a99 Mon Sep 17 00:00:00 2001 From: njl Date: Wed, 17 Mar 2004 17:50:55 +0000 Subject: Convert callers to the new bus_alloc_resource_any(9) API. Submitted by: Mark Santcroos Reviewed by: imp, dfr, bde --- sys/dev/matcd/matcd_isa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/matcd') diff --git a/sys/dev/matcd/matcd_isa.c b/sys/dev/matcd/matcd_isa.c index 7e81a52..48d01dd 100644 --- a/sys/dev/matcd/matcd_isa.c +++ b/sys/dev/matcd/matcd_isa.c @@ -149,8 +149,8 @@ static int matcd_alloc_resources (device_t dev) sc = device_get_softc(dev); 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, "Port resource not available.\n"); -- cgit v1.1