ath9k: Use a defined value for pci_set_power_state()
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 13 Jan 2009 12:32:37 +0000 (14:32 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:00:27 +0000 (16:00 -0500)
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/main.c

index 72f2956c4c54c6559f0f25264070394a10bc36a1..b93ada8f15c9ac56b2786ce22b9920df8f93c8ed 100644 (file)
@@ -2692,7 +2692,7 @@ static int ath_pci_suspend(struct pci_dev *pdev, pm_message_t state)
 
        pci_save_state(pdev);
        pci_disable_device(pdev);
-       pci_set_power_state(pdev, 3);
+       pci_set_power_state(pdev, PCI_D3hot);
 
        return 0;
 }