summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-02-27 03:38:01 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-02-27 03:38:01 +0000
commit9da1c36d0a8d774c39703ec25190536771eaee70 (patch)
treebc27bca5a9b117f27964de1fbd3efe2e2ec151d3 /sys/dev/sio
parent8db64542512568b735293ebaad1c652c899a02f1 (diff)
downloadFreeBSD-src-9da1c36d0a8d774c39703ec25190536771eaee70.zip
FreeBSD-src-9da1c36d0a8d774c39703ec25190536771eaee70.tar.gz
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().
Most calls to bus_alloc_resource() use "anywhere" as the range, with a given count. Migrate these to use the new bus_alloc_resource_anywhere() API. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D5370
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 324a80b..c27b7bc 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);
OpenPOWER on IntegriCloud