summaryrefslogtreecommitdiff
path: root/sys/dev/ic/xl.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-31 16:29:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-31 16:29:57 +0000
commited61dbfa1f399f743876d0ebce54a2039d1ecf23 (patch)
tree3fa4bb7b65557a967a91dee4bbc9b9788dc8c189 /sys/dev/ic/xl.c
parentf83ac2a911594e6e52bcb1b99774c0946a41019d (diff)
activate function should return result of config_activate_children
Diffstat (limited to 'sys/dev/ic/xl.c')
-rw-r--r--sys/dev/ic/xl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index 751501f438d..2be0cce4e09 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.92 2010/08/27 15:43:41 deraadt Exp $ */
+/* $OpenBSD: xl.c,v 1.93 2010/08/31 16:29:56 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -200,6 +200,7 @@ xl_activate(struct device *self, int act)
{
struct xl_softc *sc = (struct xl_softc *)self;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
+ int rv;
switch (act) {
case DVACT_SUSPEND:
@@ -207,16 +208,16 @@ xl_activate(struct device *self, int act)
xl_reset(sc);
xl_stop(sc);
}
- config_activate_children(self, act);
+ rv = config_activate_children(self, act);
break;
case DVACT_RESUME:
xl_reset(sc);
- config_activate_children(self, act);
+ rv = config_activate_children(self, act);
if (ifp->if_flags & IFF_UP)
xl_init(sc);
break;
}
- return (0);
+ return (rv);
}
void