diff options
| author | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:38:01 +0000 |
|---|---|---|
| committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:38:01 +0000 |
| commit | c47476d7e6801deffc8b3c057d0fbf7d2335a0c2 (patch) | |
| tree | bc27bca5a9b117f27964de1fbd3efe2e2ec151d3 /sys/dev/pbio | |
| parent | ac6c1372f4ebb24615370e358640100e663f6746 (diff) | |
Notes
Diffstat (limited to 'sys/dev/pbio')
| -rw-r--r-- | sys/dev/pbio/pbio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pbio/pbio.c b/sys/dev/pbio/pbio.c index 536e6fbdf218..ebb0e33c8661 100644 --- a/sys/dev/pbio/pbio.c +++ b/sys/dev/pbio/pbio.c @@ -170,8 +170,8 @@ pbioprobe(device_t dev) if (isa_get_logicalid(dev)) /* skip PnP probes */ return (ENXIO); rid = 0; - scp->res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, - 0, ~0, IO_PBIOSIZE, RF_ACTIVE); + scp->res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, + IO_PBIOSIZE, RF_ACTIVE); if (scp->res == NULL) return (ENXIO); @@ -225,8 +225,8 @@ pbioattach (device_t dev) sc = device_get_softc(dev); unit = device_get_unit(dev); rid = 0; - sc->res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, - 0, ~0, IO_PBIOSIZE, RF_ACTIVE); + sc->res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, + IO_PBIOSIZE, RF_ACTIVE); if (sc->res == NULL) return (ENXIO); sc->bst = rman_get_bustag(sc->res); |
