summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2011-07-14 23:45:43 +0000
committerjmcneill <jmcneill@NetBSD.org>2011-07-14 23:45:43 +0000
commit0bcfcd7968f726e500dac91a6d30f5cd6e763be2 (patch)
tree1f76be578dab9fa0e4b5a03bf2dc33bd715e9843 /sys/dev
parent2a9e7394fe5e4f7295a106f5afb2cd49961be3d9 (diff)
add module support
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/tvpll.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/dev/i2c/tvpll.c b/sys/dev/i2c/tvpll.c
index 3b45c7eb2b8..d28dbfb8a12 100644
--- a/sys/dev/i2c/tvpll.c
+++ b/sys/dev/i2c/tvpll.c
@@ -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 @@ tvpll_tune_dtv(struct tvpll *tvpll,
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;
+}