From 891dc663e67e5aff1372bf510d37aa7569c67845 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Fri, 30 Mar 2001 16:38:15 +0000 Subject: Add a new wsmuxop, dissetdisplay, which wsmux uses to disocver whether a mux device is connected to a display or not. Use it in wsmux_detach_sc(). This fixes a problem I've been struggling with whereby the machine panics if I detach a USB keyboard before disconnecting it from wsdisplay. --- sys/dev/wscons/wsmouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/wscons/wsmouse.c') diff --git a/sys/dev/wscons/wsmouse.c b/sys/dev/wscons/wsmouse.c index 329721dd31b..ba02e11fd54 100644 --- a/sys/dev/wscons/wsmouse.c +++ b/sys/dev/wscons/wsmouse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmouse.c,v 1.4 2001/02/18 15:18:49 aaron Exp $ */ +/* $OpenBSD: wsmouse.c,v 1.5 2001/03/30 16:38:14 aaron Exp $ */ /* $NetBSD: wsmouse.c,v 1.12 2000/05/01 07:36:58 takemura Exp $ */ /* @@ -166,7 +166,7 @@ cdev_decl(wsmouse); #if NWSMUX > 0 struct wsmuxops wsmouse_muxops = { - wsmouseopen, wsmousedoclose, wsmousedoioctl, 0, 0 + wsmouseopen, wsmousedoclose, wsmousedoioctl, 0, 0, 0 }; #endif -- cgit v1.2.3