Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Add the module glue to the common spkr code.
details: https://anonhg.NetBSD.org/src/rev/69ae7c9b563a
branches: trunk
changeset: 349578:69ae7c9b563a
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Dec 15 06:55:55 2016 +0000
description:
Add the module glue to the common spkr code.
diffstat:
sys/dev/spkr.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 6bb6daa80c0a -r 69ae7c9b563a sys/dev/spkr.c
--- a/sys/dev/spkr.c Thu Dec 15 06:50:37 2016 +0000
+++ b/sys/dev/spkr.c Thu Dec 15 06:55:55 2016 +0000
@@ -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 (esr%snark.thyrsus.com@localhost)
@@ -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 @@
#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;
Home |
Main Index |
Thread Index |
Old Index