From 1a2a1d8cdbb018362db23a2a71ff582651f0d6cd Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Thu, 7 Jan 1999 15:55:55 +0000 Subject: Polled mode when no irq was configured was broken --- sys/dev/ic/lpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/lpt.c') diff --git a/sys/dev/ic/lpt.c b/sys/dev/ic/lpt.c index ac2e7b5a492..c1d54a6353b 100644 --- a/sys/dev/ic/lpt.c +++ b/sys/dev/ic/lpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpt.c,v 1.2 1997/09/02 01:16:50 deraadt Exp $ */ +/* $OpenBSD: lpt.c,v 1.3 1999/01/07 15:55:54 niklas Exp $ */ /* $NetBSD: lpt.c,v 1.42 1996/10/21 22:41:14 thorpej Exp $ */ /* @@ -159,6 +159,7 @@ lptopen(dev, flag, mode, p) if (!sc) return ENXIO; + sc->sc_flags = (sc->sc_flags & LPT_POLLED) | flags; if ((sc->sc_flags & (LPT_POLLED|LPT_NOINTR)) == LPT_POLLED) return ENXIO; @@ -172,7 +173,6 @@ lptopen(dev, flag, mode, p) return EBUSY; sc->sc_state = LPT_INIT; - sc->sc_flags = flags; LPRINTF(("%s: open: flags=0x%x\n", sc->sc_dev.dv_xname, flags)); iot = sc->sc_iot; ioh = sc->sc_ioh; -- cgit v1.2.3