From 8ba0ce0fca7af2b930d07ea0f2ee39bc919e4f84 Mon Sep 17 00:00:00 2001 From: mjacob Date: Wed, 11 Jul 2007 22:25:38 +0000 Subject: In the function pc98_check_if_type for the non-8251 case make sure we initialize fileds in the iod that otherwise would have been initialized. Reviewed by: nate, ken, warner Approved by: re (ken) --- sys/pc98/cbus/sio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index fcab170..718214d 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -4314,6 +4314,10 @@ pc98_check_if_type(device_t dev, struct siodev *iod) else iod->irq = irq_tab[0][tmp & 0x07]; } + iod->cmd = 0; + iod->sts = 0; + iod->mod = 0; + iod->ctrl = 0; } if ( iod->irq == -1 ) return -1; -- cgit v1.1