Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341939
b: refs/heads/master
c: 8842758
h: refs/heads/master
i:
  341937: 2d6fe84
  341935: ebe9b0f
v: v3
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed Nov 30, 2012
1 parent ac49e05 commit b019bbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dac67975f3dc8565e4254b1d7a49618494f1a2f1
refs/heads/master: 88427588993db079a1b2cdbcba69f3c162f8ee21
15 changes: 4 additions & 11 deletions trunk/drivers/net/wireless/ath/ath9k/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ static void ath_pci_remove(struct pci_dev *pdev)
pci_release_region(pdev, 0);
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP

static int ath_pci_suspend(struct device *device)
{
Expand Down Expand Up @@ -333,22 +333,15 @@ static int ath_pci_resume(struct device *device)
return 0;
}

static const struct dev_pm_ops ath9k_pm_ops = {
.suspend = ath_pci_suspend,
.resume = ath_pci_resume,
.freeze = ath_pci_suspend,
.thaw = ath_pci_resume,
.poweroff = ath_pci_suspend,
.restore = ath_pci_resume,
};
static SIMPLE_DEV_PM_OPS(ath9k_pm_ops, ath_pci_suspend, ath_pci_resume);

#define ATH9K_PM_OPS (&ath9k_pm_ops)

#else /* !CONFIG_PM */
#else /* !CONFIG_PM_SLEEP */

#define ATH9K_PM_OPS NULL

#endif /* !CONFIG_PM */
#endif /* !CONFIG_PM_SLEEP */


MODULE_DEVICE_TABLE(pci, ath_pci_id_table);
Expand Down

0 comments on commit b019bbe

Please sign in to comment.