summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-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;