Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/prep/dev fix "panic when "wdc at obio" is probed".



details:   https://anonhg.NetBSD.org/src/rev/bb40f073add2
branches:  trunk
changeset: 583495:bb40f073add2
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Tue Aug 09 16:42:05 2005 +0000

description:
fix "panic when "wdc at obio" is probed".
(It is caused by sys/dev/ic/wdc.c: 1.224 -> 1.225)

diffstat:

 sys/arch/prep/dev/wdc_obio.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 5a7b6d4ff0e7 -r bb40f073add2 sys/arch/prep/dev/wdc_obio.c
--- a/sys/arch/prep/dev/wdc_obio.c      Tue Aug 09 16:40:12 2005 +0000
+++ b/sys/arch/prep/dev/wdc_obio.c      Tue Aug 09 16:42:05 2005 +0000
@@ -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_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;



Home | Main Index | Thread Index | Old Index