Skip to content

Commit 3e747fa

Browse files
author
Kalle Valo
committed
Merge ath-current from ath.git
ath.git fixes for 4.14. Major changes: ath10k * fix a PCI PM related gcc warning
2 parents a715b3a + 6af1de2 commit 3e747fa

File tree

1 file changed

+2
-5
lines changed
  • drivers/net/wireless/ath/ath10k

1 file changed

+2
-5
lines changed

drivers/net/wireless/ath/ath10k/pci.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3396,9 +3396,7 @@ static void ath10k_pci_remove(struct pci_dev *pdev)
33963396

33973397
MODULE_DEVICE_TABLE(pci, ath10k_pci_id_table);
33983398

3399-
#ifdef CONFIG_PM
3400-
3401-
static int ath10k_pci_pm_suspend(struct device *dev)
3399+
static __maybe_unused int ath10k_pci_pm_suspend(struct device *dev)
34023400
{
34033401
struct ath10k *ar = dev_get_drvdata(dev);
34043402
int ret;
@@ -3414,7 +3412,7 @@ static int ath10k_pci_pm_suspend(struct device *dev)
34143412
return ret;
34153413
}
34163414

3417-
static int ath10k_pci_pm_resume(struct device *dev)
3415+
static __maybe_unused int ath10k_pci_pm_resume(struct device *dev)
34183416
{
34193417
struct ath10k *ar = dev_get_drvdata(dev);
34203418
int ret;
@@ -3433,7 +3431,6 @@ static int ath10k_pci_pm_resume(struct device *dev)
34333431
static SIMPLE_DEV_PM_OPS(ath10k_pci_pm_ops,
34343432
ath10k_pci_pm_suspend,
34353433
ath10k_pci_pm_resume);
3436-
#endif
34373434

34383435
static struct pci_driver ath10k_pci_driver = {
34393436
.name = "ath10k_pci",

0 commit comments

Comments
 (0)