Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci If we're detaching the device, make sure we unre...
details: https://anonhg.NetBSD.org/src/rev/614784b7223d
branches: trunk
changeset: 753603:614784b7223d
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Apr 03 14:19:17 2010 +0000
description:
If we're detaching the device, make sure we unregister the sensors.
diffstat:
sys/dev/pci/arcmsr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 3beb907c5601 -r 614784b7223d sys/dev/pci/arcmsr.c
--- a/sys/dev/pci/arcmsr.c Sat Apr 03 13:55:09 2010 +0000
+++ b/sys/dev/pci/arcmsr.c Sat Apr 03 14:19:17 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arcmsr.c,v 1.23 2010/03/14 18:07:01 pgoyette Exp $ */
+/* $NetBSD: arcmsr.c,v 1.24 2010/04/03 14:19:17 pgoyette Exp $ */
/* $OpenBSD: arc.c,v 1.68 2007/10/27 03:28:27 dlg Exp $ */
/*
@@ -21,7 +21,7 @@
#include "bio.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arcmsr.c,v 1.23 2010/03/14 18:07:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arcmsr.c,v 1.24 2010/04/03 14:19:17 pgoyette Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -238,6 +238,7 @@
if (arc_msg0(sc, ARC_REG_INB_MSG0_FLUSH_CACHE) != 0)
aprint_error_dev(self, "timeout waiting to flush cache\n");
+ sysmon_envsys_unregister(sc->sc_sme);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index