summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2002-02-23 04:42:35 +0000
committerjason <jason@openbsd.org>2002-02-23 04:42:35 +0000
commitdae3d60364b606dfe3e27b7b75b02cb6db6b910a (patch)
tree093c861768797726f90fe05e3e73436d0659eabe
parentMove out draining of the allocator to an own function and (diff)
downloadwireguard-openbsd-dae3d60364b606dfe3e27b7b75b02cb6db6b910a.tar.xz
wireguard-openbsd-dae3d60364b606dfe3e27b7b75b02cb6db6b910a.zip
make this compile w/out pckbd (thanks marco for pointing this out)
-rw-r--r--sys/arch/sparc64/dev/beeper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/beeper.c b/sys/arch/sparc64/dev/beeper.c
index e9d257c7f8f..1ca05816d6b 100644
--- a/sys/arch/sparc64/dev/beeper.c
+++ b/sys/arch/sparc64/dev/beeper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: beeper.c,v 1.2 2002/02/19 04:14:02 jason Exp $ */
+/* $OpenBSD: beeper.c,v 1.3 2002/02/23 04:42:35 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -41,6 +41,7 @@
#include <sys/kernel.h>
#include <sys/device.h>
#include <sys/conf.h>
+#include <sys/timeout.h>
#include <machine/bus.h>
#include <machine/autoconf.h>
@@ -103,7 +104,6 @@ beeper_attach(parent, self, aux)
struct ebus_attach_args *ea = aux;
sc->sc_iot = ea->ea_bustag;
- timeout_set(&sc->sc_to, beeper_stop, sc);
/* Use prom address if available, otherwise map it. */
if (ea->ea_nvaddrs)
@@ -118,6 +118,7 @@ beeper_attach(parent, self, aux)
}
#if NPCKBD > 0
+ timeout_set(&sc->sc_to, beeper_stop, sc);
pckbd_hookup_bell(beeper_bell, sc);
#endif
printf("\n");