From 1adf06a308e8af4ffb4607f51a35616fee49e9d7 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Thu, 3 Mar 2016 01:09:00 +0000 Subject: [PATCH] Another convert to bus_alloc_resource_anywhere(). Depending on how cbus hands out resources, this could actually be bus_alloc_resource_any() instead. --- sys/pc98/cbus/pmc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/pc98/cbus/pmc.c b/sys/pc98/cbus/pmc.c index 13eade08322..ad59767c1f3 100644 --- a/sys/pc98/cbus/pmc.c +++ b/sys/pc98/cbus/pmc.c @@ -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); }