diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-02-23 04:42:36 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-02-23 04:42:36 +0000 |
commit | 9579def1561418a660382d7a888df0ceb6f99813 (patch) | |
tree | 22faa6573d061c042f606c73c8c3bf542765d396 /sys/arch/sparc64/dev/beeper.c | |
parent | 98780e6a9923018a2114c607b122883567ea8f91 (diff) |
make this compile w/out pckbd (thanks marco for pointing this out)
Diffstat (limited to 'sys/arch/sparc64/dev/beeper.c')
-rw-r--r-- | sys/arch/sparc64/dev/beeper.c | 5 |
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"); |