diff --git a/sys/dev/ic/nslm7x.c b/sys/dev/ic/nslm7x.c index c0375f6ee364..8ef3417fe84b 100644 --- a/sys/dev/ic/nslm7x.c +++ b/sys/dev/ic/nslm7x.c @@ -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 -__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 #include #include #include #include +#include #include #include @@ -2260,3 +2261,17 @@ as_refresh_temp(struct lm_softc *sc, int n) 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; + } +}