diff options
-rw-r--r-- | sys/dev/pckbc/pms_intelli.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/dev/pckbc/pms_intelli.c b/sys/dev/pckbc/pms_intelli.c index 69435f97b05..8e14798c036 100644 --- a/sys/dev/pckbc/pms_intelli.c +++ b/sys/dev/pckbc/pms_intelli.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms_intelli.c,v 1.4 2010/07/25 22:46:17 miod Exp $ */ +/* $OpenBSD: pms_intelli.c,v 1.5 2010/07/30 17:15:14 krw Exp $ */ /* $NetBSD: psm_intelli.c,v 1.8 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -241,7 +241,7 @@ pmsiactivate(struct device *self, int act) int pmsi_change_state(struct pmsi_softc *sc, int newstate) { - u_char cmd[1], resp[2]; + u_char cmd[1]; int res; switch (newstate) { @@ -254,22 +254,10 @@ pmsi_change_state(struct pmsi_softc *sc, int newstate) pckbc_slot_enable(sc->sc_kbctag, sc->sc_kbcslot, 1); pckbc_flush(sc->sc_kbctag, sc->sc_kbcslot); - - /* reset the device */ - cmd[0] = PMS_RESET; - res = pckbc_poll_cmd(sc->sc_kbctag, sc->sc_kbcslot, - cmd, 1, 2, resp, 1); -#ifdef DEBUG - if (res || resp[0] != PMS_RSTDONE || resp[1] != 0) { - printf("pmsi_change_state: reset error\n"); - return; - } -#endif res = pmsi_setintellimode(sc->sc_kbctag, sc->sc_kbcslot, 0); #ifdef DEBUG if (res) { printf("pmsi_change_state: error setting intelli mode\n"); - return; } #endif |