summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-03 15:47:19 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-03 15:47:19 +0000
commitcf51fdce33cceb21f045884bd8ac674d82bb7fa5 (patch)
treead92547f0dfd94e3390a439ec1017fd1b84ca374 /sys/scsi
parent2c5191c2d7257540905a986a7260a29cf5424ae8 (diff)
Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/cd.c4
-rw-r--r--sys/scsi/mpath_emc.c3
-rw-r--r--sys/scsi/mpath_hds.c3
-rw-r--r--sys/scsi/mpath_rdac.c3
-rw-r--r--sys/scsi/mpath_sym.c3
-rw-r--r--sys/scsi/scsiconf.c6
-rw-r--r--sys/scsi/sd.c4
-rw-r--r--sys/scsi/st.c5
8 files changed, 8 insertions, 23 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index 7c2e5f1d9e0..a0c64748ec2 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.205 2011/06/30 16:28:05 matthew Exp $ */
+/* $OpenBSD: cd.c,v 1.206 2011/07/03 15:47:18 matthew Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -240,8 +240,6 @@ cdactivate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_ACTIVATE:
- break;
case DVACT_RESUME:
/*
* When resuming, hardware may have forgotten we locked it. So if
diff --git a/sys/scsi/mpath_emc.c b/sys/scsi/mpath_emc.c
index 8384ca62841..240f62ef571 100644
--- a/sys/scsi/mpath_emc.c
+++ b/sys/scsi/mpath_emc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpath_emc.c,v 1.6 2011/06/16 08:42:30 dlg Exp $ */
+/* $OpenBSD: mpath_emc.c,v 1.7 2011/07/03 15:47:18 matthew Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -190,7 +190,6 @@ emc_activate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_ACTIVATE:
case DVACT_SUSPEND:
case DVACT_RESUME:
break;
diff --git a/sys/scsi/mpath_hds.c b/sys/scsi/mpath_hds.c
index 5e1b4ae07a1..2c0aae8e334 100644
--- a/sys/scsi/mpath_hds.c
+++ b/sys/scsi/mpath_hds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpath_hds.c,v 1.4 2011/06/15 01:44:14 dlg Exp $ */
+/* $OpenBSD: mpath_hds.c,v 1.5 2011/07/03 15:47:18 matthew Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -189,7 +189,6 @@ hds_activate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_ACTIVATE:
case DVACT_SUSPEND:
case DVACT_RESUME:
break;
diff --git a/sys/scsi/mpath_rdac.c b/sys/scsi/mpath_rdac.c
index bbc6dc7ebd4..6420e942e4a 100644
--- a/sys/scsi/mpath_rdac.c
+++ b/sys/scsi/mpath_rdac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpath_rdac.c,v 1.5 2011/06/15 01:47:41 dlg Exp $ */
+/* $OpenBSD: mpath_rdac.c,v 1.6 2011/07/03 15:47:18 matthew Exp $ */
/*
* Copyright (c) 2010 David Gwynne <dlg@openbsd.org>
@@ -233,7 +233,6 @@ rdac_activate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_ACTIVATE:
case DVACT_SUSPEND:
case DVACT_RESUME:
break;
diff --git a/sys/scsi/mpath_sym.c b/sys/scsi/mpath_sym.c
index 6ec9bebf142..8839540a991 100644
--- a/sys/scsi/mpath_sym.c
+++ b/sys/scsi/mpath_sym.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpath_sym.c,v 1.4 2011/06/15 01:51:44 dlg Exp $ */
+/* $OpenBSD: mpath_sym.c,v 1.5 2011/07/03 15:47:18 matthew Exp $ */
/*
* Copyright (c) 2010 David Gwynne <dlg@openbsd.org>
@@ -140,7 +140,6 @@ sym_activate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_ACTIVATE:
case DVACT_SUSPEND:
case DVACT_RESUME:
break;
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index 45748d2b7a0..08b04930ef4 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.c,v 1.176 2011/06/21 22:36:42 matthew Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.177 2011/07/03 15:47:18 matthew Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
@@ -247,10 +247,6 @@ scsi_activate_lun(struct scsibus_softc *sc, int target, int lun, int act)
dev = link->device_softc;
switch (act) {
- case DVACT_ACTIVATE:
- atomic_clearbits_int(&link->state, SDEV_S_DYING);
- config_activate(dev);
- break;
case DVACT_QUIESCE:
case DVACT_SUSPEND:
case DVACT_RESUME:
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index 58ca2ff5950..2222e4a1493 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.231 2011/06/30 16:28:05 matthew Exp $ */
+/* $OpenBSD: sd.c,v 1.232 2011/07/03 15:47:18 matthew Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
@@ -268,8 +268,6 @@ sdactivate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_ACTIVATE:
- break;
case DVACT_SUSPEND:
/*
* Stop the disk. Stopping the disk should flush the
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index c06359d497c..e7affca17a0 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.120 2011/06/07 15:42:29 matthew Exp $ */
+/* $OpenBSD: st.c,v 1.121 2011/07/03 15:47:18 matthew Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -351,9 +351,6 @@ stactivate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_ACTIVATE:
- break;
-
case DVACT_DEACTIVATE:
st->flags |= ST_DYING;
scsi_xsh_del(&st->sc_xsh);