Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c add module support
details: https://anonhg.NetBSD.org/src/rev/9e38f353451a
branches: trunk
changeset: 767300:9e38f353451a
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Jul 14 23:45:43 2011 +0000
description:
add module support
diffstat:
sys/dev/i2c/tvpll.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 1a74b91d4e29 -r 9e38f353451a sys/dev/i2c/tvpll.c
--- a/sys/dev/i2c/tvpll.c Thu Jul 14 23:45:26 2011 +0000
+++ b/sys/dev/i2c/tvpll.c Thu Jul 14 23:45:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tvpll.c,v 1.1 2011/07/11 00:01:52 jakllsch Exp $ */
+/* $NetBSD: tvpll.c,v 1.2 2011/07/14 23:45:43 jmcneill Exp $ */
/*
* Copyright (c) 2008, 2011 Jonathan A. Kollasch
@@ -27,13 +27,14 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tvpll.c,v 1.1 2011/07/11 00:01:52 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tvpll.c,v 1.2 2011/07/14 23:45:43 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/device.h>
#include <sys/kmem.h>
#include <sys/syslog.h>
+#include <sys/module.h>
#include <dev/dtv/dtvio.h>
#include <dev/i2c/i2cvar.h>
@@ -136,3 +137,13 @@
return rv;
}
+
+MODULE(MODULE_CLASS_DRIVER, tvpll, NULL);
+
+static int
+tvpll_modcmd(modcmd_t cmd, void *opaque)
+{
+ if (cmd == MODULE_CMD_INIT || cmd == MODULE_CMD_FINI)
+ return 0;
+ return ENOTTY;
+}
Home |
Main Index |
Thread Index |
Old Index