diff options
author | peter <peter@FreeBSD.org> | 1996-05-08 04:48:25 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-05-08 04:48:25 +0000 |
commit | d75504c231118675e0acd2131296eb39fc1a52a4 (patch) | |
tree | ac8ed10c26413678cdb678e84707ed6fb7b2c125 /sys/dev | |
parent | f8bbf6c4d993b95b988ea91c0e3acbc7d0346d25 (diff) | |
download | FreeBSD-src-d75504c231118675e0acd2131296eb39fc1a52a4.zip FreeBSD-src-d75504c231118675e0acd2131296eb39fc1a52a4.tar.gz |
*blush* How did this slip through?
Fix a dynamic initialiser in a static variable, and make sure sysctl.h
is #included.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/si/si.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index a607fdd..cdcba62 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $Id: si.c,v 1.38 1996/05/05 17:09:04 peter Exp $ + * $Id: si.c,v 1.39 1996/05/05 17:35:19 peter Exp $ */ #ifndef lint @@ -52,6 +52,7 @@ static char si_copyright1[] = "@(#) (C) Specialix International, 1990,1992", #include <sys/kernel.h> #include <sys/syslog.h> #include <sys/malloc.h> +#include <sys/sysctl.h> #include <sys/devconf.h> #ifdef DEVFS #include <sys/devfsext.h> @@ -228,7 +229,7 @@ static int si_default_cflag = TTYDEF_CFLAG; #endif #ifdef POLL -static int si_pollrate = (hz / 10); /* 10 per second, in addition to irq */ +static int si_pollrate; /* in addition to irq */ SYSCTL_INT(_machdep, OID_AUTO, si_pollrate, CTLFLAG_RD, &si_pollrate, 0, ""); @@ -288,6 +289,8 @@ siprobe(id) si_registerdev(id); + si_pollrate = (hz / 10); /* 10 per second */ + maddr = id->id_maddr; /* virtual address... */ paddr = (caddr_t)vtophys(id->id_maddr); /* physical address... */ |