summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_rtw_pci.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2007-10-22 23:00:46 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2007-10-22 23:00:46 +0000
commitc09265ae199ebf1e4d7ef8d3ab846478d7a093e1 (patch)
treef985c89aef05fe936bf4f777a8f4263cb1953a87 /sys/dev/pci/if_rtw_pci.c
parent0f994151a073841ff33e23da98323059b5c517b5 (diff)
only output on situations where power state is D3. unify the message in
such cases. ok brad@ kettenis@
Diffstat (limited to 'sys/dev/pci/if_rtw_pci.c')
-rw-r--r--sys/dev/pci/if_rtw_pci.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/sys/dev/pci/if_rtw_pci.c b/sys/dev/pci/if_rtw_pci.c
index 47a5961577a..0c386b8f23a 100644
--- a/sys/dev/pci/if_rtw_pci.c
+++ b/sys/dev/pci/if_rtw_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rtw_pci.c,v 1.9 2007/10/22 03:16:35 fgsch Exp $ */
+/* $OpenBSD: if_rtw_pci.c,v 1.10 2007/10/22 23:00:45 fgsch Exp $ */
/* $NetBSD: if_rtw_pci.c,v 1.1 2004/09/26 02:33:36 dyoung Exp $ */
/*-
@@ -189,18 +189,14 @@ rtw_pci_attach(struct device *parent, struct device *self, void *aux)
* any meanings. -dcy
*/
state = pci_set_powerstate(pc, pa->pa_tag, PCI_PMCSR_STATE_D0);
- if (state != PCI_PMCSR_STATE_D0) {
- if (state == PCI_PMCSR_STATE_D3) {
- /*
- * The card has lost all configuration data in
- * this state, so punt.
- */
- printf(": unable to wake up from power state D3, "
- "reboot required.\n");
- return;
- } else {
- printf(": waking up from power state D%d\n", state);
- }
+ if (state == PCI_PMCSR_STATE_D3) {
+ /*
+ * The card has lost all configuration data in
+ * this state, so punt.
+ */
+ printf(": unable to wake up from power state D3, "
+ "reboot required.\n");
+ return;
}
/*