From fc0aa884c00966ed658631f522167d9b77c83ed4 Mon Sep 17 00:00:00 2001 From: nonaka Date: Tue, 9 Aug 2005 16:42:05 +0000 Subject: [PATCH] fix "panic when "wdc at obio" is probed". (It is caused by sys/dev/ic/wdc.c: 1.224 -> 1.225) --- sys/arch/prep/dev/wdc_obio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/prep/dev/wdc_obio.c b/sys/arch/prep/dev/wdc_obio.c index 418f6a0fb539..2882bcfab20b 100644 --- a/sys/arch/prep/dev/wdc_obio.c +++ b/sys/arch/prep/dev/wdc_obio.c @@ -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 -__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 #include @@ -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;