Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/thorpej_scsipi]: src/sys/arch/macppc/macppc Typos, and cleanup scsi/atap...
details: https://anonhg.NetBSD.org/src/rev/c495145de649
branches: thorpej_scsipi
changeset: 477427:c495145de649
user: bouyer <bouyer%NetBSD.org@localhost>
date: Thu Mar 29 07:40:08 2001 +0000
description:
Typos, and cleanup scsi/atapi devices match.
diffstat:
sys/arch/macppc/macppc/autoconf.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diffs (26 lines):
diff -r dbdd2f4f02a5 -r c495145de649 sys/arch/macppc/macppc/autoconf.c
--- a/sys/arch/macppc/macppc/autoconf.c Wed Mar 28 20:37:47 2001 +0000
+++ b/sys/arch/macppc/macppc/autoconf.c Thu Mar 29 07:40:08 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.15.2.2 2001/03/27 13:16:25 bouyer Exp $ */
+/* $NetBSD: autoconf.c,v 1.15.2.3 2001/03/29 07:40:08 bouyer Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -240,13 +240,9 @@
DEVICE_IS(dev->dv_parent, "atapibus")) {
struct scsipibus_attach_args *sa = aux;
- if (dev->dv_parent->dv_xname[0] == 's') {
- if (addr != sa->sa_periph->periph.target)
- return;
- } else {
- if (addr != sa->sa_periph->periph.drive)
- return;
- }
+ /* periph_target is target for scsi, drive # for atapi */
+ if (addr != sa->sa_periph->periph_target)
+ return;
} else if (DEVICE_IS(dev->dv_parent, "pciide")) {
struct ata_atapi_attach *aa = aux;
Home |
Main Index |
Thread Index |
Old Index