From ae36f2054b5612aa7968cc0b722e6fd9f0446df1 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Thu, 19 Jan 2006 17:08:41 +0000 Subject: 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@ --- sys/arch/i386/i386/esm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/i386') 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 @@ -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; -- cgit v1.2.3