summaryrefslogtreecommitdiff
path: root/sys/dev/ic/twe.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2010-06-28 18:31:03 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2010-06-28 18:31:03 +0000
commit32d204697861b907520e94f82e392d3e7d6d661a (patch)
tree7bad5a228621b81780b7712982b6a979ce2df424 /sys/dev/ic/twe.c
parent12135c2c16aaab7651a7b1c48ed35586452fadcc (diff)
Remove all adapter-specific 'struct scsi_device's. They are never used. First
step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
Diffstat (limited to 'sys/dev/ic/twe.c')
-rw-r--r--sys/dev/ic/twe.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c
index 3d1b02dac5f..2e1751dfaa6 100644
--- a/sys/dev/ic/twe.c
+++ b/sys/dev/ic/twe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: twe.c,v 1.36 2010/05/20 00:55:17 krw Exp $ */
+/* $OpenBSD: twe.c,v 1.37 2010/06/28 18:31:02 krw Exp $ */
/*
* Copyright (c) 2000-2002 Michael Shalayeff. All rights reserved.
@@ -70,10 +70,6 @@ struct scsi_adapter twe_switch = {
twe_scsi_cmd, tweminphys, 0, 0,
};
-struct scsi_device twe_dev = {
- NULL, NULL, NULL, NULL
-};
-
static __inline struct twe_ccb *twe_get_ccb(struct twe_softc *sc);
static __inline void twe_put_ccb(struct twe_ccb *ccb);
void twe_dispose(struct twe_softc *sc);
@@ -383,7 +379,6 @@ twe_attach(sc)
sc->sc_link.adapter_softc = sc;
sc->sc_link.adapter = &twe_switch;
sc->sc_link.adapter_target = TWE_MAX_UNITS;
- sc->sc_link.device = &twe_dev;
sc->sc_link.openings = TWE_MAXCMDS / nunits;
sc->sc_link.adapter_buswidth = TWE_MAX_UNITS;