diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-23 23:22:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-23 23:22:39 +0000 |
commit | 69479f7be677f5949222ae9e7454c6787c8a8225 (patch) | |
tree | a0c32401089b48672c0fb46b3c228a6cbaf8fe83 /sys | |
parent | 5fdc451887c832140fb81b64f4c5d7e40b34ccec (diff) |
pckbd_activate() should return failure if it knows; ok pirofti
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pckbc/pckbd.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pckbc/pckbd.c b/sys/dev/pckbc/pckbd.c index f0f66206288..377be22e6d1 100644 --- a/sys/dev/pckbc/pckbd.c +++ b/sys/dev/pckbc/pckbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pckbd.c,v 1.23 2009/11/23 15:21:41 deraadt Exp $ */ +/* $OpenBSD: pckbd.c,v 1.24 2009/11/23 23:22:38 deraadt Exp $ */ /* $NetBSD: pckbd.c,v 1.24 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -417,15 +417,17 @@ pckbdattach(parent, self, aux) int pckbd_activate(struct device *self, int act) { + int rv = 0; + switch (act) { case DVACT_SUSPEND: - pckbd_enable(self, 0); + rv = pckbd_enable(self, 0); break; case DVACT_RESUME: - pckbd_enable(self, 1); + rv = pckbd_enable(self, 1); break; } - return (0); + return (rv); } int |