summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2006-01-19 17:08:41 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2006-01-19 17:08:41 +0000
commitae36f2054b5612aa7968cc0b722e6fd9f0446df1 (patch)
tree36f0c710576bef0a2dd796b1b8893ee1c0480afe /sys/scsi
parent5ddc9bd0d1112ccc5b376dcad408e01de66a48b8 (diff)
Replace SENSOR_ADD() macro with a pair of functions
sensor_add()/sensor_del() so that sensors can be attached and detached dynamicaly. ok kettenis@ deraadt@ dlg@
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/safte.c4
-rw-r--r--sys/scsi/ses.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/scsi/safte.c b/sys/scsi/safte.c
index cc4c3a0e987..355069d2bd3 100644
--- a/sys/scsi/safte.c
+++ b/sys/scsi/safte.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safte.c,v 1.25 2006/01/11 08:21:21 dlg Exp $ */
+/* $OpenBSD: safte.c,v 1.26 2006/01/19 17:08:40 grange Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -185,7 +185,7 @@ safte_attach(struct device *parent, struct device *self, void *aux)
free(sc->sc_sensors, M_DEVBUF);
} else {
for (i = 0; i < sc->sc_nsensors; i++)
- SENSOR_ADD(&sc->sc_sensors[i].se_sensor);
+ sensor_add(&sc->sc_sensors[i].se_sensor);
}
#if NBIO > 0
diff --git a/sys/scsi/ses.c b/sys/scsi/ses.c
index 1a1b222a162..3b495452da3 100644
--- a/sys/scsi/ses.c
+++ b/sys/scsi/ses.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ses.c,v 1.33 2006/01/11 08:21:21 dlg Exp $ */
+/* $OpenBSD: ses.c,v 1.34 2006/01/19 17:08:40 grange Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -178,7 +178,7 @@ ses_attach(struct device *parent, struct device *self, void *aux)
}
} else {
TAILQ_FOREACH(sensor, &sc->sc_sensors, se_entry)
- SENSOR_ADD(&sensor->se_sensor);
+ sensor_add(&sensor->se_sensor);
}
#if NBIO > 0