mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 21:26:14 +01:00
Bluetooth: btintel: Remove unneeded CONFIG_PM* #ifdef's
The functions are already disabled if CONFIG_PM or CONFIG_PM_SLEEP are disabled through the use of SET_SYSTEM_SLEEP_PM_OPS() and SET_RUNTIME_PM_OPS(). This increases build coverage and allows to drop a few #ifdef's. Signed-off-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
04a4c885fd
commit
90c38d402c
1 changed files with 2 additions and 8 deletions
|
|
@ -126,7 +126,6 @@ static int intel_wait_booting(struct hci_uart *hu)
|
|||
return err;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int intel_wait_lpm_transaction(struct hci_uart *hu)
|
||||
{
|
||||
struct intel_data *intel = hu->priv;
|
||||
|
|
@ -237,7 +236,6 @@ static int intel_lpm_resume(struct hci_uart *hu)
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
static int intel_lpm_host_wake(struct hci_uart *hu)
|
||||
{
|
||||
|
|
@ -1066,7 +1064,6 @@ static const struct acpi_device_id intel_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, intel_acpi_match);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int intel_suspend_device(struct device *dev)
|
||||
{
|
||||
struct intel_device *idev = dev_get_drvdata(dev);
|
||||
|
|
@ -1090,10 +1087,8 @@ static int intel_resume_device(struct device *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
static int intel_suspend(struct device *dev)
|
||||
static int __maybe_unused intel_suspend(struct device *dev)
|
||||
{
|
||||
struct intel_device *idev = dev_get_drvdata(dev);
|
||||
|
||||
|
|
@ -1103,7 +1098,7 @@ static int intel_suspend(struct device *dev)
|
|||
return intel_suspend_device(dev);
|
||||
}
|
||||
|
||||
static int intel_resume(struct device *dev)
|
||||
static int __maybe_unused intel_resume(struct device *dev)
|
||||
{
|
||||
struct intel_device *idev = dev_get_drvdata(dev);
|
||||
|
||||
|
|
@ -1112,7 +1107,6 @@ static int intel_resume(struct device *dev)
|
|||
|
||||
return intel_resume_device(dev);
|
||||
}
|
||||
#endif
|
||||
|
||||
static const struct dev_pm_ops intel_pm_ops = {
|
||||
SET_SYSTEM_SLEEP_PM_OPS(intel_suspend, intel_resume)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue