* [PATCH] ath9k: Use a defined value for pci_set_power_state()
@ 2009-01-13 12:32 Jouni Malinen
0 siblings, 0 replies; only message in thread
From: Jouni Malinen @ 2009-01-13 12:32 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless
Silence sparse by using a defined value PCI_D3hot instead of a magic
constant in a pci_set_power_state() call.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
---
drivers/net/wireless/ath9k/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- wireless-testing.orig/drivers/net/wireless/ath9k/main.c 2009-01-13 14:10:23.000000000 +0200
+++ wireless-testing/drivers/net/wireless/ath9k/main.c 2009-01-13 14:11:00.000000000 +0200
@@ -2692,7 +2692,7 @@ static int ath_pci_suspend(struct pci_de
pci_save_state(pdev);
pci_disable_device(pdev);
- pci_set_power_state(pdev, 3);
+ pci_set_power_state(pdev, PCI_D3hot);
return 0;
}
--
Jouni Malinen PGP id EFC895FA
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-13 12:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 12:32 [PATCH] ath9k: Use a defined value for pci_set_power_state() Jouni Malinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).