Skip to contentSkip to conversation

ath9k: Use a defined value for pci_set_power_state()

PATCH New Jouni Malinen 1 participant 1 message Jan 13, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: Use a defined value for pci_set_power_state()

Silence sparse by using a defined value PCI_D3hot instead of a magic constant in a pci_set_power_state() call.

---
 drivers/net/wireless/ath9k/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath9k/main.c +1 -1
@@ -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;
 }
Signature · 1 line
Jouni Malinen                                            PGP id EFC895FA