From owner-svn-src-head@FreeBSD.ORG Fri Oct 10 19:12:06 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 664DC307; Fri, 10 Oct 2014 19:12:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 38E0166A; Fri, 10 Oct 2014 19:12:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9AJC6CC044202; Fri, 10 Oct 2014 19:12:06 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9AJC5uw044199; Fri, 10 Oct 2014 19:12:05 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201410101912.s9AJC5uw044199@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Fri, 10 Oct 2014 19:12:05 +0000 (UTC) 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 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2014 19:12:06 -0000 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,