Module Name: src
Committed By: pooka
Date: Sun Apr 11 09:36:47 UTC 2010
Modified Files:
src/sys/dev/putter: putter.c
Log Message:
Call putterattach in modcmd init. Fixes lockdebug panic. Disable
unload, since putterdetach() is not implemented (i.e. current
implementation of modcmd fini is flawed), and I don't plan to fix
that now.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/putter/putter.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/putter/putter.c
diff -u src/sys/dev/putter/putter.c:1.27 src/sys/dev/putter/putter.c:1.28
--- src/sys/dev/putter/putter.c:1.27 Thu Jan 28 18:12:55 2010
+++ src/sys/dev/putter/putter.c Sun Apr 11 09:36:47 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: putter.c,v 1.27 2010/01/28 18:12:55 pooka Exp $ */
+/* $NetBSD: putter.c,v 1.28 2010/04/11 09:36:47 pooka Exp $ */
/*
* Copyright (c) 2006, 2007 Antti Kantee. All Rights Reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.27 2010/01/28 18:12:55 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.28 2010/04/11 09:36:47 pooka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -653,10 +653,11 @@
switch (cmd) {
case MODULE_CMD_INIT:
+ putterattach();
return devsw_attach("putter", NULL, &bmajor,
&putter_cdevsw, &cmajor);
case MODULE_CMD_FINI:
- return devsw_detach(NULL, &putter_cdevsw);
+ return ENOTTY; /* XXX: putterdetach */
default:
return ENOTTY;
}