diff options
| author | scw <scw@NetBSD.org> | 2000-04-14 19:31:50 +0000 |
|---|---|---|
| committer | scw <scw@NetBSD.org> | 2000-04-14 19:31:50 +0000 |
| commit | c56f4bceb8627971b5d6eac72025b36865366241 (patch) | |
| tree | f10f8ea247a842724164bf0519ea5c2d1293d87d /sys/dev | |
| parent | b6ef06e01881e3a48eed141d1de7758608eb0cf1 (diff) | |
Fix some callout fallout. Hi Jason!
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ofw/ofcons.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/ofw/ofcons.c b/sys/dev/ofw/ofcons.c index 1f9fb5f3db8..40055c231de 100644 --- a/sys/dev/ofw/ofcons.c +++ b/sys/dev/ofw/ofcons.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofcons.c,v 1.10 2000/03/23 07:01:37 thorpej Exp $ */ +/* $NetBSD: ofcons.c,v 1.11 2000/04/14 19:31:50 scw Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -88,9 +88,11 @@ ofcons_attach(parent, self, aux) struct device *parent, *self; void *aux; { + struct ofcons_softc *sc = (struct ofcons_softc *) self; + printf("\n"); - callout_reset(&sc->sc_poll_ch); + callout_init(&sc->sc_poll_ch); } static void ofcons_start __P((struct tty *)); @@ -132,7 +134,7 @@ ofcons_open(dev, flag, mode, p) if (!(sc->of_flags & OFPOLL)) { sc->of_flags |= OFPOLL; - callout_reset(&sc->sc_poll_ch, 1, ofcons_poll, 1); + callout_reset(&sc->sc_poll_ch, 1, ofcons_poll, sc); } return (*linesw[tp->t_line].l_open)(dev, tp); @@ -270,7 +272,7 @@ ofcons_poll(aux) if (tp && (tp->t_state & TS_ISOPEN)) (*linesw[tp->t_line].l_rint)(ch, tp); } - callout_reset(&sc->sc_poll_ch, 1, ofcons_poll, 1); + callout_reset(&sc->sc_poll_ch, 1, ofcons_poll, sc); } static int |
