Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/dev Call sysmon_envsys_unregister() not sys...



details:   https://anonhg.NetBSD.org/src/rev/848d37e1fd96
branches:  trunk
changeset: 1015743:848d37e1fd96
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sat Oct 31 13:17:34 2020 +0000

description:
Call sysmon_envsys_unregister() not sysmon_envsys_destroy() when
detaching.  Pointed out by Michael van Elst.

diffstat:

 sys/arch/sparc64/dev/pcf8591_envctrl.c |  6 +++---
 sys/arch/sparc64/dev/tda.c             |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r ae914262220d -r 848d37e1fd96 sys/arch/sparc64/dev/pcf8591_envctrl.c
--- a/sys/arch/sparc64/dev/pcf8591_envctrl.c    Sat Oct 31 13:15:10 2020 +0000
+++ b/sys/arch/sparc64/dev/pcf8591_envctrl.c    Sat Oct 31 13:17:34 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcf8591_envctrl.c,v 1.10 2020/10/24 15:16:39 jdc Exp $ */
+/*     $NetBSD: pcf8591_envctrl.c,v 1.11 2020/10/31 13:17:34 jdc Exp $ */
 /*     $OpenBSD: pcf8591_envctrl.c,v 1.6 2007/10/25 21:17:20 kettenis Exp $ */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcf8591_envctrl.c,v 1.10 2020/10/24 15:16:39 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcf8591_envctrl.c,v 1.11 2020/10/31 13:17:34 jdc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -264,7 +264,7 @@
        }
 
        if (sc->sc_sme != NULL)
-               sysmon_envsys_destroy(sc->sc_sme);
+               sysmon_envsys_unregister(sc->sc_sme);
 
        return 0;
 }
diff -r ae914262220d -r 848d37e1fd96 sys/arch/sparc64/dev/tda.c
--- a/sys/arch/sparc64/dev/tda.c        Sat Oct 31 13:15:10 2020 +0000
+++ b/sys/arch/sparc64/dev/tda.c        Sat Oct 31 13:17:34 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tda.c,v 1.13 2019/03/01 02:38:17 mrg Exp $     */
+/*     $NetBSD: tda.c,v 1.14 2020/10/31 13:17:34 jdc Exp $     */
 /*     $OpenBSD: tda.c,v 1.4 2008/02/27 17:25:00 robert Exp $ */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tda.c,v 1.13 2019/03/01 02:38:17 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tda.c,v 1.14 2020/10/31 13:17:34 jdc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -177,7 +177,7 @@
        struct tda_softc *sc = device_private(self);
 
        if (sc->sc_sme != NULL)
-               sysmon_envsys_destroy(sc->sc_sme);
+               sysmon_envsys_unregister(sc->sc_sme);
 
        callout_halt(&sc->sc_timer, NULL);
        callout_destroy(&sc->sc_timer);



Home | Main Index | Thread Index | Old Index