summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-02-22 22:12:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-02-22 22:12:11 +0000
commit661d3f7912f1e4e41a97f9b86b37d5d06bd607bb (patch)
treeff4ecb018a22c8f9598ad72679e0859fa3bd8d96 /sys/arch
parentdcb179a96c41a7ce8d90128b6e6b86ffae1bcff9 (diff)
call zkbd_hinge() at attach time, to init sc_hinge; drahn ok
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/zaurus/dev/zaurus_kbd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_kbd.c b/sys/arch/zaurus/dev/zaurus_kbd.c
index 89c9c16d9c0..6d822731032 100644
--- a/sys/arch/zaurus/dev/zaurus_kbd.c
+++ b/sys/arch/zaurus/dev/zaurus_kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_kbd.c,v 1.14 2005/02/22 21:53:03 uwe Exp $ */
+/* $OpenBSD: zaurus_kbd.c,v 1.15 2005/02/22 22:12:10 deraadt Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
*
@@ -240,6 +240,8 @@ zkbd_attach(struct device *parent, struct device *self, void *aux)
printf("\n");
+ zkbd_hinge(sc); /* to initialize sc_hinge */
+
sc->sc_wskbddev = config_found(self, &a, wskbddevprint);
timeout_set(&(sc->sc_roll_to), zkbd_poll, sc);