summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-31 16:31:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-31 16:31:01 +0000
commit96a7260cbfa15e94cbc504cbc834181f38f6bca8 (patch)
tree27562e3307786abbce88b058593e6b7699bd1643 /sys/dev/isa
parented61dbfa1f399f743876d0ebce54a2039d1ecf23 (diff)
activate function should return result of config_activate_children
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/pckbc_isa.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/isa/pckbc_isa.c b/sys/dev/isa/pckbc_isa.c
index 130dba6e477..cedd2131f74 100644
--- a/sys/dev/isa/pckbc_isa.c
+++ b/sys/dev/isa/pckbc_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbc_isa.c,v 1.8 2010/08/28 12:47:12 miod Exp $ */
+/* $OpenBSD: pckbc_isa.c,v 1.9 2010/08/31 16:31:00 deraadt Exp $ */
/* $NetBSD: pckbc_isa.c,v 1.2 2000/03/23 07:01:35 thorpej Exp $ */
/*
@@ -111,17 +111,18 @@ int
pckbc_isa_activate(struct device *self, int act)
{
struct pckbc_isa_softc *isc = (struct pckbc_isa_softc *)self;
+ int rv = 0;
switch (act) {
case DVACT_SUSPEND:
- config_activate_children(self, act);
+ rv = config_activate_children(self, act);
break;
case DVACT_RESUME:
pckbc_reset(&isc->sc_pckbc);
- config_activate_children(self, act);
+ rv = config_activate_children(self, act);
break;
}
- return (0);
+ return (rv);
}
void