summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/it.c
diff options
context:
space:
mode:
authorgrange <grange@openbsd.org>2006-01-19 17:08:39 +0000
committergrange <grange@openbsd.org>2006-01-19 17:08:39 +0000
commit92bc29752c791db4abe5d558a9c0e676fc4a6862 (patch)
tree94c180691e517cf8b525480d5c50231046d35e3d /sys/dev/isa/it.c
parentMissing closing quote. (diff)
downloadwireguard-openbsd-92bc29752c791db4abe5d558a9c0e676fc4a6862.tar.xz
wireguard-openbsd-92bc29752c791db4abe5d558a9c0e676fc4a6862.zip
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/dev/isa/it.c')
-rw-r--r--sys/dev/isa/it.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index 7957fc4d1ce..f3ecabdeb32 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.16 2005/12/28 15:27:44 grange Exp $ */
+/* $OpenBSD: it.c,v 1.17 2006/01/19 17:08:40 grange Exp $ */
/*
* Copyright (c) 2003 Julien Bordet <zejames@greyhats.org>
@@ -148,7 +148,7 @@ it_attach(struct device *parent, struct device *self, void *aux)
for (i = 0; i < sc->numsensors; ++i) {
strlcpy(sc->sensors[i].device, sc->sc_dev.dv_xname,
sizeof(sc->sensors[i].device));
- SENSOR_ADD(&sc->sensors[i]);
+ sensor_add(&sc->sensors[i]);
}
}