Don't pass RF_ALLOCATED to bus_alloc_resource().
This commit is contained in:
parent
bd735ec199
commit
97dc3d98cb
@ -323,8 +323,7 @@ static int ct_is_free_res (device_t dev, int rid, int type, u_long start,
|
||||
{
|
||||
struct resource *res;
|
||||
|
||||
if (!(res = bus_alloc_resource (dev, type, &rid, start, end, count,
|
||||
RF_ALLOCATED)))
|
||||
if (!(res = bus_alloc_resource (dev, type, &rid, start, end, count, 0)))
|
||||
return 0;
|
||||
|
||||
bus_release_resource (dev, type, rid, res);
|
||||
|
@ -410,8 +410,7 @@ static int cx_is_free_res (device_t dev, int rid, int type, u_long start,
|
||||
{
|
||||
struct resource *res;
|
||||
|
||||
if (!(res = bus_alloc_resource (dev, type, &rid, start, end, count,
|
||||
RF_ALLOCATED)))
|
||||
if (!(res = bus_alloc_resource (dev, type, &rid, start, end, count, 0)))
|
||||
return 0;
|
||||
|
||||
bus_release_resource (dev, type, rid, res);
|
||||
|
@ -292,7 +292,7 @@ digi_isa_probe(device_t dev)
|
||||
/* Temporarily map our memory */
|
||||
sc->res.mrid = 0;
|
||||
sc->res.mem = bus_alloc_resource(dev, SYS_RES_MEMORY, &sc->res.mrid,
|
||||
0ul, ~0ul, sc->win_size, RF_ALLOCATED);
|
||||
0ul, ~0ul, sc->win_size, 0);
|
||||
if (sc->res.mem == NULL) {
|
||||
device_printf(dev, "0x%lx: Memory range is in use\n", sc->pmem);
|
||||
bus_release_resource(dev, SYS_RES_IOPORT, sc->res.iorid,
|
||||
|
Loading…
Reference in New Issue
Block a user