summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-07-08 21:20:56 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-07-08 21:20:56 +0000
commit5b3ead25dc9c0f765267bfc884efc55838549863 (patch)
treeb9de08e14a34f07f2f05e7bb71c8f802cbb25d01 /sys
parent26072f16095311fc627c8dc846fb200710d87013 (diff)
Correctly convert to new timeouts (this hasn't compiled for awhile)
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/dev/scf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/scf.c b/sys/arch/sparc/dev/scf.c
index 2b9b08b33c9..9d2cca5b215 100644
--- a/sys/arch/sparc/dev/scf.c
+++ b/sys/arch/sparc/dev/scf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scf.c,v 1.4 2002/03/14 01:26:43 millert Exp $ */
+/* $OpenBSD: scf.c,v 1.5 2002/07/08 21:20:55 jason Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -50,6 +50,7 @@
#include <sys/syslog.h>
#include <sys/device.h>
#include <sys/malloc.h>
+#include <sys/timeout.h>
#include <machine/autoconf.h>
#include <sparc/cpu.h>
@@ -140,10 +141,10 @@ scfattach(parent, self, aux)
sc->sc_regs->led1 &= ~LED_MASK;
sc->sc_regs->ssldcr = 0;
- if (sparc_led_blink) {
- timeout_set(&sc->sc_blink_tmo, scfblink, 0);
+ timeout_set(&sc->sc_blink_tmo, scfblink, 0);
+
+ if (sparc_led_blink)
scfblink(0);
- }
}
int