From 55cbfde80ae1f99de59970044860857b77c5f3ae Mon Sep 17 00:00:00 2001 From: bouyer Date: Wed, 10 Aug 2005 13:15:42 +0000 Subject: [PATCH] Add missing declaration/initialisation of wdc. Pointed out by Rui Paulo. --- sys/dev/ic/wdc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index 32bcd30098fc..88848ba74e33 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -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 -__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 @@ wdc_drvprobe(struct ata_channel *chp) 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;