diff options
Diffstat (limited to 'sys/dev/pci/cs4280.c')
-rw-r--r-- | sys/dev/pci/cs4280.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/pci/cs4280.c b/sys/dev/pci/cs4280.c index baefecfbf41..9485f5f37e6 100644 --- a/sys/dev/pci/cs4280.c +++ b/sys/dev/pci/cs4280.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4280.c,v 1.27 2007/10/21 12:43:25 fgsch Exp $ */ +/* $OpenBSD: cs4280.c,v 1.28 2007/10/22 03:16:35 fgsch Exp $ */ /* $NetBSD: cs4280.c,v 1.5 2000/06/26 04:56:23 simonb Exp $ */ /* @@ -604,8 +604,6 @@ cs4280_attach(parent, self, aux) char const *intrstr; pci_intr_handle_t ih; u_int32_t mem; - pcireg_t pmode; - int pmreg; /* Map I/O register */ if (pci_mapreg_map(pa, CSCC_PCI_BA0, @@ -624,14 +622,7 @@ cs4280_attach(parent, self, aux) sc->sc_dmatag = pa->pa_dmat; /* Get out of power save mode if needed. */ - if (pci_get_capability(pc, pa->pa_tag, PCI_CAP_PWRMGMT, &pmreg, 0)) { - pmode = pci_conf_read(pc, pa->pa_tag, pmreg + PCI_PMCSR); - if ((pmode & PCI_PMCSR_STATE_MASK) != PCI_PMCSR_STATE_D0) { - pci_conf_write(pc, pa->pa_tag, pmreg + PCI_PMCSR, - (pmode & ~PCI_PMCSR_STATE_MASK) | - PCI_PMCSR_STATE_D0); - } - } + pci_set_powerstate(pc, pa->pa_tag, PCI_PMCSR_STATE_D0); /* LATENCY_TIMER setting */ mem = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG); |