mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
6c3e542b3d
commit
1adf06a308
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue