summaryrefslogtreecommitdiff
path: root/sys/dev/ic/pckbc.c
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2005-12-29 12:31:30 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2005-12-29 12:31:30 +0000
commit2ca2908e55b127ccb757644ccaad6d6203f003ad (patch)
treec7e47f7b517bc501938d4c7f78d61f1f97479110 /sys/dev/ic/pckbc.c
parent4b0b2232ddc2400195b4e6d50d2617f49b2a34b8 (diff)
go via pckbc_enqeue_cmd() in pckbd_enable() if on; fixes PR 4615
ok miod@, mickey@
Diffstat (limited to 'sys/dev/ic/pckbc.c')
-rw-r--r--sys/dev/ic/pckbc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/pckbc.c b/sys/dev/ic/pckbc.c
index ae82e0c34d5..76bda02eb2c 100644
--- a/sys/dev/ic/pckbc.c
+++ b/sys/dev/ic/pckbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbc.c,v 1.10 2005/08/06 19:49:19 jcs Exp $ */
+/* $OpenBSD: pckbc.c,v 1.11 2005/12/29 12:31:29 martin Exp $ */
/* $NetBSD: pckbc.c,v 1.5 2000/06/09 04:58:35 soda Exp $ */
/*
@@ -633,7 +633,6 @@ pckbc_poll_cmd(self, slot, cmd, len, responselen, respbuf, slow)
u_char *respbuf;
int slow;
{
- struct pckbc_internal *t = self;
struct pckbc_devcmd nc;
if ((len > 4) || (responselen > 4))
@@ -645,7 +644,7 @@ pckbc_poll_cmd(self, slot, cmd, len, responselen, respbuf, slow)
nc.responselen = responselen;
nc.flags = (slow ? KBC_CMDFLAG_SLOW : 0);
- pckbc_poll_cmd1(t, slot, &nc);
+ pckbc_poll_cmd1(self, slot, &nc);
if (nc.status == 0 && respbuf)
bcopy(nc.response, respbuf, responselen);