fix "panic when "wdc at obio" is probed".

(It is caused by sys/dev/ic/wdc.c: 1.224 -> 1.225)
This commit is contained in:
nonaka 2005-08-09 16:42:05 +00:00
parent fda9b4f722
commit fc0aa884c0
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: wdc_obio.c,v 1.18 2004/08/20 06:39:38 thorpej Exp $ */
/* $NetBSD: wdc_obio.c,v 1.19 2005/08/09 16:42:05 nonaka Exp $ */
/*-
* Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.18 2004/08/20 06:39:38 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.19 2005/08/09 16:42:05 nonaka Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -107,6 +107,7 @@ wdc_obio_probe(struct device *parent, struct cfdata *match, void *aux)
WDC_OBIO_AUXREG_NPORTS, 0, &wdr.ctl_ioh))
goto outunmap;
wdc.reset = wdc_do_reset;
result = wdcprobe(&ch);
if (result) {
oa->oa_iosize = WDC_OBIO_REG_NPORTS;