Add another missing ch_ndrive initialization.

This commit is contained in:
bouyer 2006-02-07 20:37:24 +00:00
parent 4cee25b965
commit c071d3b194

View File

@ -1,4 +1,4 @@
/* $NetBSD: cmdide.c,v 1.22 2006/01/17 00:40:49 bouyer Exp $ */
/* $NetBSD: cmdide.c,v 1.23 2006/02/07 20:37:24 bouyer Exp $ */
/*
* Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cmdide.c,v 1.22 2006/01/17 00:40:49 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: cmdide.c,v 1.23 2006/02/07 20:37:24 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -529,6 +529,7 @@ cmd680_channel_map(struct pci_attach_args *pa, struct pciide_softc *sc,
sc->sc_wdcdev.sc_atac.atac_dev.dv_xname, cp->name);
return;
}
cp->ata_channel.ch_ndrive = 2;
/* XXX */
reg = 0xa2 + channel * 16;