Arnd Bergmann 6af1de2e4e ath10k: mark PM functions as __maybe_unused
When CONFIG_PM_SLEEP is disabled, we get a compile-time
warning:

drivers/net/wireless/ath/ath10k/pci.c:3417:12: error: 'ath10k_pci_pm_resume' defined but not used [-Werror=unused-function]
 static int ath10k_pci_pm_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/pci.c:3401:12: error: 'ath10k_pci_pm_suspend' defined but not used [-Werror=unused-function]
 static int ath10k_pci_pm_suspend(struct device *dev)

Rather than fixing the #ifdef, this just marks both functions
as __maybe_unused, which is a more robust way to do this.

Fixes: 32faa3f0ee50 ("ath10k: add the PCI PM core suspend/resume ops")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-09-21 18:01:30 +03:00
..
2016-01-28 10:47:28 +02:00
2017-05-04 15:55:41 +03:00
2017-07-06 15:17:05 +03:00
2017-07-06 15:17:05 +03:00
2017-05-04 15:55:45 +03:00
2017-05-04 15:55:45 +03:00
2017-08-31 15:13:18 +03:00
2017-04-05 10:41:03 +03:00
2017-08-03 14:31:01 +03:00
2017-02-14 19:38:15 +02:00
2017-08-03 14:31:01 +03:00
2017-02-14 19:38:15 +02:00
2017-07-06 15:17:05 +03:00
2017-04-05 10:41:03 +03:00
2017-08-03 14:31:01 +03:00
2017-08-03 14:31:01 +03:00
2017-01-13 15:26:30 +02:00