Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/putter Call putterattach in modcmd init. Fixes lock...
details: https://anonhg.NetBSD.org/src/rev/3a7007c0b579
branches: trunk
changeset: 753824:3a7007c0b579
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Apr 11 09:36:47 2010 +0000
description:
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.
diffstat:
sys/dev/putter/putter.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r c655edaa48d2 -r 3a7007c0b579 sys/dev/putter/putter.c
--- a/sys/dev/putter/putter.c Sun Apr 11 08:58:43 2010 +0000
+++ b/sys/dev/putter/putter.c Sun Apr 11 09:36:47 2010 +0000
@@ -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;
}
Home |
Main Index |
Thread Index |
Old Index