summaryrefslogtreecommitdiff
path: root/sys/dev/ic/lpt.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-07 15:55:55 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-07 15:55:55 +0000
commit1a2a1d8cdbb018362db23a2a71ff582651f0d6cd (patch)
tree694286635586985dc5f4317c903a84a701996ea6 /sys/dev/ic/lpt.c
parent97ddd277f74838ca724b0aa42b6a9d57e4d11324 (diff)
Polled mode when no irq was configured was broken
Diffstat (limited to 'sys/dev/ic/lpt.c')
-rw-r--r--sys/dev/ic/lpt.c4
1 files changed, 2 insertions, 2 deletions
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;