diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2016-03-03 01:09:00 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2016-03-03 01:09:00 +0000 |
commit | c720a6e216b225ec018cce152e477ef547d44336 (patch) | |
tree | c478e9f8d3f6a109bfacb9a04be74f370a68f1e0 /sys/pc98 | |
parent | bc371c5480a427bae05319b02c6b3e210d5dbcd0 (diff) | |
download | FreeBSD-src-c720a6e216b225ec018cce152e477ef547d44336.zip FreeBSD-src-c720a6e216b225ec018cce152e477ef547d44336.tar.gz |
Another convert to bus_alloc_resource_anywhere().
Depending on how cbus hands out resources, this could actually be
bus_alloc_resource_any() instead.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/cbus/pmc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/pc98/cbus/pmc.c b/sys/pc98/cbus/pmc.c index 13eade0..ad59767 100644 --- a/sys/pc98/cbus/pmc.c +++ b/sys/pc98/cbus/pmc.c @@ -100,9 +100,8 @@ pmc_isa_alloc_resources(device_t dev) bzero(sc, sizeof(*sc)); rid = 0; - sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, - 0ul, ~0ul, PMC_ISA_PORTSIZE, - RF_ACTIVE); + sc->port_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, + PMC_ISA_PORTSIZE, RF_ACTIVE); if (sc->port_res == NULL) { return (ENOMEM); } |