Module Name: src
Committed By: jakllsch
Date: Sat Jan 21 15:50:13 UTC 2012
Modified Files:
src/sys/dev/ic: nslm7x.c
Log Message:
Add module glue. (Better late than never.)
To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/ic/nslm7x.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/nslm7x.c
diff -u src/sys/dev/ic/nslm7x.c:1.58 src/sys/dev/ic/nslm7x.c:1.59
--- src/sys/dev/ic/nslm7x.c:1.58 Mon Jun 20 17:48:46 2011
+++ src/sys/dev/ic/nslm7x.c Sat Jan 21 15:50:13 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: nslm7x.c,v 1.58 2011/06/20 17:48:46 pgoyette Exp $ */
+/* $NetBSD: nslm7x.c,v 1.59 2012/01/21 15:50:13 jakllsch Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,13 +30,14 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.58 2011/06/20 17:48:46 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.59 2012/01/21 15:50:13 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/device.h>
+#include <sys/module.h>
#include <sys/conf.h>
#include <sys/time.h>
@@ -2260,3 +2261,17 @@ as_refresh_temp(struct lm_softc *sc, int
DPRINTF(("%s: temp[%d] data=0x%x value_cur=%d\n",
__func__, n, data, sc->sensors[n].value_cur));
}
+
+MODULE(MODULE_CLASS_DRIVER, lm, NULL);
+
+static int
+lm_modcmd(modcmd_t cmd, void *opaque)
+{
+ switch (cmd) {
+ case MODULE_CMD_INIT:
+ case MODULE_CMD_FINI:
+ return 0;
+ default:
+ return ENOTTY;
+ }
+}