Skip to content

Commit

Permalink
ath9k: Use a defined value for pci_set_power_state()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Jan 29, 2009
1 parent d03415e commit 07e7434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 07e7434

Please sign in to comment.