diff --git a/sys/dev/pckbc/psm_intelli.c b/sys/dev/pckbc/psm_intelli.c index de0bd6dad8d5..132318ae43a8 100644 --- a/sys/dev/pckbc/psm_intelli.c +++ b/sys/dev/pckbc/psm_intelli.c @@ -1,4 +1,4 @@ -/* $NetBSD: psm_intelli.c,v 1.10 2002/01/14 21:56:10 jmcneill Exp $ */ +/* $NetBSD: psm_intelli.c,v 1.11 2002/01/25 14:53:43 jmcneill Exp $ */ /*- * Copyright (c) 1994 Charles M. Hannum. @@ -24,7 +24,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: psm_intelli.c,v 1.10 2002/01/14 21:56:10 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: psm_intelli.c,v 1.11 2002/01/25 14:53:43 jmcneill Exp $"); #include #include @@ -236,6 +236,9 @@ do_enable(sc) if (res) printf("pmsi_enable: command error\n"); + if (sc->sc_powerhook == NULL) + return; + if ((res = pmsi_setintellimode(sc->sc_kbctag, sc->sc_kbcslot))) { #ifdef DEBUG printf("pmsi_enable: intellimode -> %d\n", res);