Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Add module glue. (Better late than never.)
details: https://anonhg.NetBSD.org/src/rev/8c456d28bb7d
branches: trunk
changeset: 772909:8c456d28bb7d
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Jan 21 15:50:13 2012 +0000
description:
Add module glue. (Better late than never.)
diffstat:
sys/dev/ic/nslm7x.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r abc82cbd1d44 -r 8c456d28bb7d sys/dev/ic/nslm7x.c
--- a/sys/dev/ic/nslm7x.c Sat Jan 21 13:35:49 2012 +0000
+++ b/sys/dev/ic/nslm7x.c Sat Jan 21 15:50:13 2012 +0000
@@ -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 @@
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;
+ }
+}
Home |
Main Index |
Thread Index |
Old Index