svn commit: r272904 - in head/sys/dev: ctau cx digi

John Baldwin jhb at FreeBSD.org
Fri Oct 10 19:12:06 UTC 2014


Author: jhb
Date: Fri Oct 10 19:12:04 2014
New Revision: 272904
URL: https://svnweb.freebsd.org/changeset/base/272904

Log:
  Don't pass RF_ALLOCATED to bus_alloc_resource().

Modified:
  head/sys/dev/ctau/if_ct.c
  head/sys/dev/cx/if_cx.c
  head/sys/dev/digi/digi_isa.c

Modified: head/sys/dev/ctau/if_ct.c
==============================================================================
--- head/sys/dev/ctau/if_ct.c	Fri Oct 10 19:02:02 2014	(r272903)
+++ head/sys/dev/ctau/if_ct.c	Fri Oct 10 19:12:04 2014	(r272904)
@@ -323,8 +323,7 @@ static int ct_is_free_res (device_t dev,
 {
 	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);

Modified: head/sys/dev/cx/if_cx.c
==============================================================================
--- head/sys/dev/cx/if_cx.c	Fri Oct 10 19:02:02 2014	(r272903)
+++ head/sys/dev/cx/if_cx.c	Fri Oct 10 19:12:04 2014	(r272904)
@@ -410,8 +410,7 @@ static int cx_is_free_res (device_t dev,
 {
 	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);

Modified: head/sys/dev/digi/digi_isa.c
==============================================================================
--- head/sys/dev/digi/digi_isa.c	Fri Oct 10 19:02:02 2014	(r272903)
+++ head/sys/dev/digi/digi_isa.c	Fri Oct 10 19:12:04 2014	(r272904)
@@ -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,


More information about the svn-src-head mailing list