From c47476d7e6801deffc8b3c057d0fbf7d2335a0c2 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sat, 27 Feb 2016 03:38:01 +0000 Subject: 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 --- sys/dev/sio/sio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/sio/sio.c') 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); -- cgit v1.2.3