浏览代码

Bluetooth: hci_intel: Fix warnings due to unused lpm functions

intel_lpm_suspend/resume are only used in case of CONFIG_PM.

Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Loic Poulain 10 年之前
父节点
当前提交
a9cb0fe489
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/bluetooth/hci_intel.c

+ 2 - 0
drivers/bluetooth/hci_intel.c

@@ -141,6 +141,7 @@ 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;
@@ -249,6 +250,7 @@ static int intel_lpm_resume(struct hci_uart *hu)
 
 	return 0;
 }
+#endif /* CONFIG_PM */
 
 static int intel_lpm_host_wake(struct hci_uart *hu)
 {