From cc34b6178d7968ebaaedcfb329ea910d83e99e88 Mon Sep 17 00:00:00 2001 From: jnemeth Date: Tue, 18 Nov 2008 10:49:45 +0000 Subject: PR/39947 - Juan RP -- dbcool_detach implicitly called sysmon_envsys_destroy() twice --- sys/dev/i2c/dbcool.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/i2c/dbcool.c b/sys/dev/i2c/dbcool.c index 4d65dd2a06e..7f9972f33af 100644 --- a/sys/dev/i2c/dbcool.c +++ b/sys/dev/i2c/dbcool.c @@ -1,4 +1,4 @@ -/* $NetBSD: dbcool.c,v 1.5 2008/10/12 12:49:04 pgoyette Exp $ */ +/* $NetBSD: dbcool.c,v 1.6 2008/11/18 10:49:45 jnemeth Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -49,7 +49,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.5 2008/10/12 12:49:04 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.6 2008/11/18 10:49:45 jnemeth Exp $"); #include #include @@ -639,7 +639,6 @@ dbcool_detach(device_t self, int flags) struct dbcool_softc *sc = device_private(self); sysmon_envsys_unregister(sc->sc_sme); - sysmon_envsys_destroy(sc->sc_sme); sc->sc_sme = NULL; return 0; } -- cgit