Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sysmon Revert 1.2 apart from incorrect comment. the...



details:   https://anonhg.NetBSD.org/src/rev/372665f0ed4c
branches:  trunk
changeset: 758156:372665f0ed4c
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Oct 23 11:24:16 2010 +0000

description:
Revert 1.2 apart from incorrect comment.  the devattach() routine
is of course still used by kernel&config pseudodev.

pointed out by jakllsch

diffstat:

 sys/dev/sysmon/swsensor.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r ae0c076e81bf -r 372665f0ed4c sys/dev/sysmon/swsensor.c
--- a/sys/dev/sysmon/swsensor.c Sat Oct 23 03:27:03 2010 +0000
+++ b/sys/dev/sysmon/swsensor.c Sat Oct 23 11:24:16 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: swsensor.c,v 1.3 2010/10/20 19:21:04 pooka Exp $ */
+/*     $NetBSD: swsensor.c,v 1.4 2010/10/23 11:24:16 pooka Exp $ */
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: swsensor.c,v 1.3 2010/10/20 19:21:04 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: swsensor.c,v 1.4 2010/10/23 11:24:16 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -193,3 +193,11 @@
 
        return ret;
 }
+
+int
+swsensorattach(int n __unused)
+{
+       printf("%s: ", "swsensor0");
+
+       return swsensor_init(NULL);
+}



Home | Main Index | Thread Index | Old Index