summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pccbb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/pccbb.c')
-rw-r--r--sys/dev/pci/pccbb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pci/pccbb.c b/sys/dev/pci/pccbb.c
index fd37b407280..e2d233d766e 100644
--- a/sys/dev/pci/pccbb.c
+++ b/sys/dev/pci/pccbb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccbb.c,v 1.87 2010/12/08 20:22:49 miod Exp $ */
+/* $OpenBSD: pccbb.c,v 1.88 2012/10/08 21:47:50 deraadt Exp $ */
/* $NetBSD: pccbb.c,v 1.96 2004/03/28 09:49:31 nakayama Exp $ */
/*
@@ -457,8 +457,6 @@ pccbbattach(struct device *parent, struct device *self, void *aux)
printf("\n");
- shutdownhook_establish(pccbb_shutdown, sc);
-
/* Disable legacy register mapping. */
pccbb_legacy_disable(sc);
@@ -2841,6 +2839,10 @@ pccbbactivate(struct device *self, int act)
sc->sc_iobase[1] = pci_conf_read(pc, tag, PCI_CB_IOBASE1);
sc->sc_iolimit[1] = pci_conf_read(pc, tag, PCI_CB_IOLIMIT1);
break;
+ case DVACT_POWERDOWN:
+ rv = config_activate_children(self, act);
+ pccbb_shutdown(self);
+ break;
case DVACT_RESUME:
/* Restore the registers saved above. */
pci_conf_write(pc, tag, PCI_BHLC_REG, sc->sc_bhlcr);