summaryrefslogtreecommitdiffstats
path: root/sys/isa/sio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/isa/sio.c')
-rw-r--r--sys/isa/sio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/isa/sio.c b/sys/isa/sio.c
index 4665d88..7cb6eba 100644
--- a/sys/isa/sio.c
+++ b/sys/isa/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.246 1999/05/31 06:57:31 phk Exp $
+ * $Id: sio.c,v 1.247 1999/06/15 22:15:10 mckusick Exp $
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* from: i386/isa sio.c,v 1.234
*/
@@ -69,6 +69,7 @@
#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>
@@ -639,7 +640,8 @@ sioprobe(dev)
devclass_get_devices(sio_devclass, &devs, &count);
for (i = 0; i < count; i++) {
xdev = devs[i];
- outb(isa_get_port(xdev) + com_mcr, 0);
+ if (xdev->flags & DF_ENABLED)
+ outb(isa_get_port(xdev) + com_mcr, 0);
}
free(devs, M_TEMP);
already_init = TRUE;
OpenPOWER on IntegriCloud