Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/dev/ic/wdc.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/dev/ic/wdc.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.153 retrieving revision 1.154 diff -u -p -r1.153 -r1.154 --- src/sys/dev/ic/wdc.c 2003/11/07 08:58:33 1.153 +++ src/sys/dev/ic/wdc.c 2003/11/13 22:18:10 1.154 @@ -1,4 +1,4 @@ -/* $NetBSD: wdc.c,v 1.153 2003/11/07 08:58:33 bouyer Exp $ */ +/* $NetBSD: wdc.c,v 1.154 2003/11/13 22:18:10 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.153 2003/11/07 08:58:33 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.154 2003/11/13 22:18:10 bouyer Exp $"); #ifndef WDCDEBUG #define WDCDEBUG @@ -410,7 +410,9 @@ atabusconfig(atabus_sc) chp->ch_drive[0].drive_flags &= ~DRIVE_OLD; chp->ch_drive[1].drive_flags &= ~DRIVE_OLD; } else { - chp->ch_drive[i].drive_flags &= + chp->ch_drive[0].drive_flags &= + ~(DRIVE_ATA | DRIVE_ATAPI); + chp->ch_drive[1].drive_flags &= ~(DRIVE_ATA | DRIVE_ATAPI); WDCDEBUG_PRINT(("%s:%d:%d: IDENTIFY failed (%d)\n", chp->wdc->sc_dev.dv_xname,