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)
This commit is contained in:
parent
26e3bc3a96
commit
f9f47b5bf6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user