summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/apple_smc_fan.c5
-rw-r--r--sys/dev/ic/apple_smc_temp.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/ic/apple_smc_fan.c b/sys/dev/ic/apple_smc_fan.c
index 081ebed9697..93a94622866 100644
--- a/sys/dev/ic/apple_smc_fan.c
+++ b/sys/dev/ic/apple_smc_fan.c
@@ -1,4 +1,4 @@
-/* $NetBSD: apple_smc_fan.c,v 1.5 2015/04/23 23:23:00 pgoyette Exp $ */
+/* $NetBSD: apple_smc_fan.c,v 1.6 2022/06/29 15:58:12 mlelstv Exp $ */
/*
* Apple System Management Controller: Fans
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apple_smc_fan.c,v 1.5 2015/04/23 23:23:00 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apple_smc_fan.c,v 1.6 2022/06/29 15:58:12 mlelstv Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -218,7 +218,6 @@ apple_smc_fan_detach(device_t self, int flags)
/* If we registered with sysmon_envsys, unregister. */
if (sc->sc_sme != NULL) {
sysmon_envsys_unregister(sc->sc_sme);
- sc->sc_sme = NULL;
KASSERT(sc->sc_fans != NULL);
KASSERT(sc->sc_nfans > 0);
diff --git a/sys/dev/ic/apple_smc_temp.c b/sys/dev/ic/apple_smc_temp.c
index 66190708da5..05cf93a166b 100644
--- a/sys/dev/ic/apple_smc_temp.c
+++ b/sys/dev/ic/apple_smc_temp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: apple_smc_temp.c,v 1.5 2015/04/23 23:23:00 pgoyette Exp $ */
+/* $NetBSD: apple_smc_temp.c,v 1.6 2022/06/29 15:58:12 mlelstv Exp $ */
/*
* Apple System Management Controller: Temperature Sensors
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apple_smc_temp.c,v 1.5 2015/04/23 23:23:00 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apple_smc_temp.c,v 1.6 2022/06/29 15:58:12 mlelstv Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -153,7 +153,6 @@ apple_smc_temp_detach(device_t self, int flags)
/* If we registered with sysmon_envsys, unregister. */
if (sc->sc_sme != NULL) {
sysmon_envsys_unregister(sc->sc_sme);
- sc->sc_sme = NULL;
KASSERT(sc->sc_sensors != NULL);
KASSERT(sc->sc_nsensors > 0);