Add missing declaration/initialisation of wdc.
Pointed out by Rui Paulo.
This commit is contained in:
parent
0be9633956
commit
55cbfde80a
|
@ -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 @@ 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;
|
||||
|
|
Loading…
Reference in New Issue