summaryrefslogtreecommitdiff
path: root/sys/arch/i386
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/arch/i386
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/arch/i386')
-rw-r--r--sys/arch/i386/i386/esm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/esm.c b/sys/arch/i386/i386/esm.c
index 3ca30d0d09f..f7c9186b994 100644
--- a/sys/arch/i386/i386/esm.c
+++ b/sys/arch/i386/i386/esm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esm.c,v 1.32 2006/01/05 07:39:30 dlg Exp $ */
+/* $OpenBSD: esm.c,v 1.33 2006/01/19 17:08:39 grange Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -919,7 +919,7 @@ esm_make_sensors(struct esm_softc *sc, struct esm_devmap *devmap,
for (j = 0; j < nsensors; j++) {
s[j].type = esm_typemap[es->es_type];
strlcpy(s[j].device, DEVNAME(sc), sizeof(s[j].device));
- SENSOR_ADD(&s[j]);
+ sensor_add(&s[j]);
}
es->es_sensor = s;