diff options
author | peter <peter@FreeBSD.org> | 1999-06-20 13:10:09 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-06-20 13:10:09 +0000 |
commit | 615565283ac17a71ab572b235e8e2ec107b6dfe1 (patch) | |
tree | a5573680bc003be3f108c989922af1704cbbe495 /sys/dev/sio/sio.c | |
parent | aaf32b4147e4b1fa8d85cdfbd6237ecd45cf9427 (diff) | |
download | FreeBSD-src-615565283ac17a71ab572b235e8e2ec107b6dfe1.zip FreeBSD-src-615565283ac17a71ab572b235e8e2ec107b6dfe1.tar.gz |
Use the proper interfaces to find if a device is enabled, don't dig into
the bus mechanism's private internals!
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r-- | sys/dev/sio/sio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 7cb6eba..c3be310 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sio.c,v 1.247 1999/06/15 22:15:10 mckusick Exp $ + * $Id: sio.c,v 1.248 1999/06/19 08:14:56 grog Exp $ * from: @(#)com.c 7.5 (Berkeley) 5/16/91 * from: i386/isa sio.c,v 1.234 */ @@ -69,7 +69,6 @@ #include <sys/sysctl.h> #include <sys/bus.h> #include <machine/bus.h> -#include <sys/bus_private.h> #include <sys/rman.h> #ifdef DEVFS #include <sys/devfsext.h> @@ -640,7 +639,7 @@ sioprobe(dev) devclass_get_devices(sio_devclass, &devs, &count); for (i = 0; i < count; i++) { xdev = devs[i]; - if (xdev->flags & DF_ENABLED) + if (device_is_enabled(xdev)) outb(isa_get_port(xdev) + com_mcr, 0); } free(devs, M_TEMP); |