Module Name: src Committed By: pgoyette Date: Thu Dec 15 06:55:55 UTC 2016
Modified Files: src/sys/dev: spkr.c Log Message: Add the module glue to the common spkr code. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/dev/spkr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/spkr.c diff -u src/sys/dev/spkr.c:1.4 src/sys/dev/spkr.c:1.5 --- src/sys/dev/spkr.c:1.4 Tue Dec 13 20:20:34 2016 +++ src/sys/dev/spkr.c Thu Dec 15 06:55:55 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: spkr.c,v 1.4 2016/12/13 20:20:34 christos Exp $ */ +/* $NetBSD: spkr.c,v 1.5 2016/12/15 06:55:55 pgoyette Exp $ */ /* * Copyright (c) 1990 Eric S. Raymond (e...@snark.thyrsus.com) @@ -43,7 +43,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: spkr.c,v 1.4 2016/12/13 20:20:34 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: spkr.c,v 1.5 2016/12/15 06:55:55 pgoyette Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -475,8 +475,10 @@ extern struct cfdriver spkr_cd; #include "ioconf.c" #endif +MODULE(MODULE_CLASS_DRIVER, spkr, "" /* audio and/or pcppi */ ); + int -spkr__modcmd(modcmd_t cmd, void *arg) +spkr_modcmd(modcmd_t cmd, void *arg) { #ifdef _MODULE devmajor_t bmajor, cmajor;