summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-20 18:20:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-20 18:20:00 +0000
commiteb1485abe7e83624207b03c63428d3fa60a58d65 (patch)
treef9f361d445bad27989de729c76fd7433f6c307ce /sys/dev/ic
parentb1163168f180e091ea2ca3c480c77947c76c4723 (diff)
correct handling of t_apmver
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/pckbc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/pckbc.c b/sys/dev/ic/pckbc.c
index abce9f1370a..496d8c34818 100644
--- a/sys/dev/ic/pckbc.c
+++ b/sys/dev/ic/pckbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbc.c,v 1.34 2013/04/20 08:01:37 tobias Exp $ */
+/* $OpenBSD: pckbc.c,v 1.35 2013/04/20 18:19:59 deraadt Exp $ */
/* $NetBSD: pckbc.c,v 1.5 2000/06/09 04:58:35 soda Exp $ */
/*
@@ -816,8 +816,10 @@ pckbc_reset(struct pckbc_softc *sc)
if (pckbc_send_cmd(iot, ioh_c, KBC_SELFTEST) == 0)
return;
pckbc_poll_data1(iot, ioh_d, ioh_c, PCKBC_KBD_SLOT, NULL);
+#ifdef PCKBC_APM
if (t->t_apmver >= 0)
pckbc_enable_apm(t);
+#endif
(void)pckbc_put8042cmd(t);
pckbcintr_internal(t->t_sc->id, t->t_sc);
}