diff options
author | jhb <jhb@FreeBSD.org> | 2014-10-10 19:12:04 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-10-10 19:12:04 +0000 |
commit | 3528154dd45c4d89e5523e5ac883c71f3392f2d7 (patch) | |
tree | b14344090c008c128d42f61f654821eda7b13a85 /sys | |
parent | 4cb4e287c6e3b9f3ec21e2fd4733d8b136475d82 (diff) | |
download | FreeBSD-src-3528154dd45c4d89e5523e5ac883c71f3392f2d7.zip FreeBSD-src-3528154dd45c4d89e5523e5ac883c71f3392f2d7.tar.gz |
Don't pass RF_ALLOCATED to bus_alloc_resource().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ctau/if_ct.c | 3 | ||||
-rw-r--r-- | sys/dev/cx/if_cx.c | 3 | ||||
-rw-r--r-- | sys/dev/digi/digi_isa.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ctau/if_ct.c b/sys/dev/ctau/if_ct.c index 397c3ac..d0b68bc 100644 --- a/sys/dev/ctau/if_ct.c +++ b/sys/dev/ctau/if_ct.c @@ -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); diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c index 360e1f6..2327403 100644 --- a/sys/dev/cx/if_cx.c +++ b/sys/dev/cx/if_cx.c @@ -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); diff --git a/sys/dev/digi/digi_isa.c b/sys/dev/digi/digi_isa.c index 0a0a2a0..d0741ac 100644 --- a/sys/dev/digi/digi_isa.c +++ b/sys/dev/digi/digi_isa.c @@ -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, |