Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Default to 2 drives for products not listed.



details:   https://anonhg.NetBSD.org/src/rev/7e2ec047a2c1
branches:  trunk
changeset: 587382:7e2ec047a2c1
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 22 00:08:38 2006 +0000

description:
Default to 2 drives for products not listed.

diffstat:

 sys/dev/pcmcia/wdc_pcmcia.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ae9c32c6bb4e -r 7e2ec047a2c1 sys/dev/pcmcia/wdc_pcmcia.c
--- a/sys/dev/pcmcia/wdc_pcmcia.c       Sat Jan 21 23:40:30 2006 +0000
+++ b/sys/dev/pcmcia/wdc_pcmcia.c       Sun Jan 22 00:08:38 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc_pcmcia.c,v 1.103 2006/01/16 20:30:19 bouyer Exp $ */
+/*     $NetBSD: wdc_pcmcia.c,v 1.104 2006/01/22 00:08:38 christos Exp $ */
 
 /*-
  * Copyright (c) 1998, 2003, 2004 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc_pcmcia.c,v 1.103 2006/01/16 20:30:19 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc_pcmcia.c,v 1.104 2006/01/22 00:08:38 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -301,7 +301,7 @@
        sc->ata_channel.ch_queue = &sc->wdc_chqueue;
        wdcp = pcmcia_product_lookup(pa, wdc_pcmcia_products,
            wdc_pcmcia_nproducts, sizeof(wdc_pcmcia_products[0]), NULL);
-       sc->ata_channel.ch_ndrive = wdcp->wdc_ndrive;
+       sc->ata_channel.ch_ndrive = wdcp ? wdcp->wdc_ndrive : 2;
        wdc_init_shadow_regs(&sc->ata_channel);
 
        error = wdc_pcmcia_enable(self, 1);



Home | Main Index | Thread Index | Old Index