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);
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to