diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2004-03-17 17:50:55 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2004-03-17 17:50:55 +0000 |
| commit | 5f96beb9e08be2b08309a6b98967246b64272ade (patch) | |
| tree | a1c3f00139d832c8e80338cfc56c8b1aaffd88ab /sys/dev/adlink | |
| parent | 902aa2e784bda6cef99fb99db6acd4f435a3ff09 (diff) | |
Notes
Diffstat (limited to 'sys/dev/adlink')
| -rw-r--r-- | sys/dev/adlink/adlink.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/adlink/adlink.c b/sys/dev/adlink/adlink.c index a66ccf5ac330..7e9eb791a886 100644 --- a/sys/dev/adlink/adlink.c +++ b/sys/dev/adlink/adlink.c @@ -430,8 +430,7 @@ adlink_attach(device_t self) * chip. */ rid = 0x10; - sc->r0 = bus_alloc_resource(self, SYS_RES_IOPORT, &rid, - 0, ~0, 1, RF_ACTIVE); + sc->r0 = bus_alloc_resource_any(self, SYS_RES_IOPORT, &rid, RF_ACTIVE); if (sc->r0 == NULL) return(ENODEV); sc->t0 = rman_get_bustag(sc->r0); @@ -443,8 +442,7 @@ adlink_attach(device_t self) * are described in the manual which comes with the card. */ rid = 0x14; - sc->r1 = bus_alloc_resource(self, SYS_RES_IOPORT, &rid, - 0, ~0, 1, RF_ACTIVE); + sc->r1 = bus_alloc_resource_any(self, SYS_RES_IOPORT, &rid, RF_ACTIVE); if (sc->r1 == NULL) return(ENODEV); sc->t1 = rman_get_bustag(sc->r1); @@ -452,8 +450,8 @@ adlink_attach(device_t self) printf("Res1 %x %x\n", sc->t1, sc->h1); rid = 0x0; - sc->ri = bus_alloc_resource(self, SYS_RES_IRQ, &rid, - 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); + sc->ri = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid, + RF_ACTIVE | RF_SHAREABLE); if (sc->ri == NULL) return (ENODEV); |
