Add missing ch_ndrive initialisations. Pointed out by Juan RP.
This commit is contained in:
parent
b3b44f7885
commit
038345f3e8
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: cmdide.c,v 1.21 2005/12/11 12:22:48 christos Exp $ */
|
/* $NetBSD: cmdide.c,v 1.22 2006/01/17 00:40:49 bouyer Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
|
* Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
|
||||||
@ -30,7 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: cmdide.c,v 1.21 2005/12/11 12:22:48 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: cmdide.c,v 1.22 2006/01/17 00:40:49 bouyer Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -176,6 +176,7 @@ cmd_channel_map(struct pci_attach_args *pa, struct pciide_softc *sc,
|
|||||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, cp->name);
|
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, cp->name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
cp->ata_channel.ch_ndrive = 2;
|
||||||
|
|
||||||
aprint_normal("%s: %s channel %s to %s mode\n",
|
aprint_normal("%s: %s channel %s to %s mode\n",
|
||||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, cp->name,
|
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, cp->name,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pciide_common.c,v 1.29 2006/01/04 22:10:10 bouyer Exp $ */
|
/* $NetBSD: pciide_common.c,v 1.30 2006/01/17 00:40:49 bouyer Exp $ */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -76,7 +76,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pciide_common.c,v 1.29 2006/01/04 22:10:10 bouyer Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pciide_common.c,v 1.30 2006/01/17 00:40:49 bouyer Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
@ -791,6 +791,7 @@ pciide_chansetup(sc, channel, interface)
|
|||||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, cp->name);
|
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, cp->name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
cp->ata_channel.ch_ndrive = 2;
|
||||||
aprint_normal("%s: %s channel %s to %s mode\n",
|
aprint_normal("%s: %s channel %s to %s mode\n",
|
||||||
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, cp->name,
|
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, cp->name,
|
||||||
(interface & PCIIDE_INTERFACE_SETTABLE(channel)) ?
|
(interface & PCIIDE_INTERFACE_SETTABLE(channel)) ?
|
||||||
|
Loading…
Reference in New Issue
Block a user