summaryrefslogtreecommitdiff
path: root/sys/dev/sio
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sio')
-rw-r--r--sys/dev/sio/sio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 324a80be0829..c27b7bcb3f19 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -444,8 +444,8 @@ sioprobe(dev, xrid, rclk, noprobe)
struct resource *port;
rid = xrid;
- port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0, ~0, IO_COMSIZE, RF_ACTIVE);
+ port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
+ IO_COMSIZE, RF_ACTIVE);
if (!port)
return (ENXIO);
@@ -884,8 +884,8 @@ sioattach(dev, xrid, rclk)
struct tty *tp;
rid = xrid;
- port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0, ~0, IO_COMSIZE, RF_ACTIVE);
+ port = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
+ IO_COMSIZE, RF_ACTIVE);
if (!port)
return (ENXIO);