Another convert to bus_alloc_resource_anywhere().

Depending on how cbus hands out resources, this could actually be
bus_alloc_resource_any() instead.
This commit is contained in:
Justin Hibbits 2016-03-03 01:09:00 +00:00
parent 6c3e542b3d
commit 1adf06a308

View file

@ -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);
}