From 0bcfcd7968f726e500dac91a6d30f5cd6e763be2 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Thu, 14 Jul 2011 23:45:43 +0000 Subject: add module support --- sys/dev/i2c/tvpll.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 -__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 #include #include #include #include +#include #include #include @@ -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; +} -- cgit