Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Add missing declaration/initialisation of wdc.



details:   https://anonhg.NetBSD.org/src/rev/00e194c07d63
branches:  trunk
changeset: 583521:00e194c07d63
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed Aug 10 13:15:42 2005 +0000

description:
Add missing declaration/initialisation of wdc.
Pointed out by Rui Paulo.

diffstat:

 sys/dev/ic/wdc.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 36ebb6b995fd -r 00e194c07d63 sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Wed Aug 10 13:08:11 2005 +0000
+++ b/sys/dev/ic/wdc.c  Wed Aug 10 13:15:42 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.227 2005/08/10 11:16:53 bouyer Exp $ */
+/*     $NetBSD: wdc.c,v 1.228 2005/08/10 13:15:42 bouyer Exp $ */
 
 /*
  * Copyright (c) 1998, 2001, 2003 Manuel Bouyer.  All rights reserved.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.227 2005/08/10 11:16:53 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.228 2005/08/10 13:15:42 bouyer Exp $");
 
 #ifndef ATADEBUG
 #define ATADEBUG
@@ -397,6 +397,7 @@
 int
 wdcprobe(struct ata_channel *chp)
 {
+       struct wdc_softc *wdc = CHAN_TO_WDC(chp);
        /* default reset method */
        if (wdc->reset == NULL)
                wdc->reset = wdc_do_reset;



Home | Main Index | Thread Index | Old Index