summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-11 15:45:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-11 15:45:01 +0000
commit395f7bac4b34266619d2abb3e96f40f59e430e66 (patch)
treeb9184aebdc7b511e31ee34486fbc000f5accda80 /sys/dev/pci
parenta6b7b438c7a559d944c087371efd4a35b9cac9f6 (diff)
remove pci_set_powerstate() calls that are not needed, since the pci
framework does these more correctly ok kettenis
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/esa.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/pci/esa.c b/sys/dev/pci/esa.c
index c41deecd698..a1f8b53e9b8 100644
--- a/sys/dev/pci/esa.c
+++ b/sys/dev/pci/esa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esa.c,v 1.24 2011/12/07 10:31:31 kettenis Exp $ */
+/* $OpenBSD: esa.c,v 1.25 2012/10/11 15:45:00 deraadt Exp $ */
/* $NetBSD: esa.c,v 1.12 2002/03/24 14:17:35 jmcneill Exp $ */
/*
@@ -1640,8 +1640,6 @@ esa_suspend(struct esa_softc *sc)
sc->savemem[index++] = esa_read_assp(sc,
ESA_MEMTYPE_INTERNAL_DATA, i);
- pci_set_powerstate(sc->sc_pct, sc->sc_tag, PCI_PMCSR_STATE_D3);
-
return (0);
}
@@ -1654,9 +1652,6 @@ esa_resume(struct esa_softc *sc) {
index = 0;
- pci_set_powerstate(sc->sc_pct, sc->sc_tag, PCI_PMCSR_STATE_D0);
- delay(10000);
-
esa_config(sc);
reset_state = esa_assp_halt(sc);