aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ppc/ppc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ppc/ppc.c')
-rw-r--r--sys/dev/ppc/ppc.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c
index 17a4a0420f4be..a23f06ce772a7 100644
--- a/sys/dev/ppc/ppc.c
+++ b/sys/dev/ppc/ppc.c
@@ -1721,19 +1721,21 @@ ppc_probe(device_t dev, int rid)
/* IO port is mandatory */
/* Try "extended" IO port range...*/
- ppc->res_ioport = bus_alloc_resource(dev, SYS_RES_IOPORT,
- &ppc->rid_ioport, 0, ~0,
- IO_LPTSIZE_EXTENDED, RF_ACTIVE);
+ ppc->res_ioport = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
+ &ppc->rid_ioport,
+ IO_LPTSIZE_EXTENDED,
+ RF_ACTIVE);
if (ppc->res_ioport != 0) {
if (bootverbose)
device_printf(dev, "using extended I/O port range\n");
} else {
/* Failed? If so, then try the "normal" IO port range... */
- ppc->res_ioport = bus_alloc_resource(dev, SYS_RES_IOPORT,
- &ppc->rid_ioport, 0, ~0,
- IO_LPTSIZE_NORMAL,
- RF_ACTIVE);
+ ppc->res_ioport = bus_alloc_resource_anywhere(dev,
+ SYS_RES_IOPORT,
+ &ppc->rid_ioport,
+ IO_LPTSIZE_NORMAL,
+ RF_ACTIVE);
if (ppc->res_ioport != 0) {
if (bootverbose)
device_printf(dev, "using normal I/O port range\n");