Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Oct 2014 19:12:05 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272904 - in head/sys/dev: ctau cx digi
Message-ID:  <201410101912.s9AJC5uw044199@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410101912.s9AJC5uw044199>