summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-11-23 15:24:01 +0000
committerderaadt <deraadt@openbsd.org>2009-11-23 15:24:01 +0000
commit6421bcb6a1198397b0255e2fcb7cbd3f48ff5e8b (patch)
tree2c474a2b67e01d63c48be5d650404ed3a3b989bb /sys/dev/pci/pci.c
parentbetter style is DVACT_SUSPEND before DVACT_RESUME (diff)
downloadwireguard-openbsd-6421bcb6a1198397b0255e2fcb7cbd3f48ff5e8b.tar.xz
wireguard-openbsd-6421bcb6a1198397b0255e2fcb7cbd3f48ff5e8b.zip
Walk our children in the activate function.
ok mlarkin pirofti
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r--sys/dev/pci/pci.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 1a972470d63..2db9ae4a1a6 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.69 2009/11/23 01:28:11 mlarkin Exp $ */
+/* $OpenBSD: pci.c,v 1.70 2009/11/23 15:24:01 deraadt Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -182,12 +182,14 @@ pciactivate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_RESUME:
- pcipower(PWR_RESUME, self);
- break;
case DVACT_SUSPEND:
+ config_activate_children(self, act);
pcipower(PWR_SUSPEND, self);
break;
+ case DVACT_RESUME:
+ pcipower(PWR_RESUME, self);
+ config_activate_children(self, act);
+ break;
}
return (rv);
}