Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2016 01:09:01 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296330 - head/sys/pc98/cbus
Message-ID:  <201603030109.u2319148026606@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Thu Mar  3 01:09:00 2016
New Revision: 296330
URL: https://svnweb.freebsd.org/changeset/base/296330

Log:
  Another convert to bus_alloc_resource_anywhere().
  
  Depending on how cbus hands out resources, this could actually be
  bus_alloc_resource_any() instead.

Modified:
  head/sys/pc98/cbus/pmc.c

Modified: head/sys/pc98/cbus/pmc.c
==============================================================================
--- head/sys/pc98/cbus/pmc.c	Thu Mar  3 01:07:17 2016	(r296329)
+++ head/sys/pc98/cbus/pmc.c	Thu Mar  3 01:09:00 2016	(r296330)
@@ -100,9 +100,8 @@ pmc_isa_alloc_resources(device_t dev)
 	bzero(sc, sizeof(*sc));
 
 	rid = 0;
-	sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
-					  0ul, ~0ul, PMC_ISA_PORTSIZE,
-					  RF_ACTIVE);
+	sc->port_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
+						   PMC_ISA_PORTSIZE, RF_ACTIVE);
 	if (sc->port_res == NULL) {
 		return (ENOMEM);
 	}



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