2015-09-04 15:39:25

by Loic Poulain

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>
---
drivers/bluetooth/hci_intel.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/bluetooth/hci_intel.c b/drivers/bluetooth/hci_intel.c
index 8c9c2b6..70e9e47 100644
--- a/drivers/bluetooth/hci_intel.c
+++ b/drivers/bluetooth/hci_intel.c
@@ -163,6 +163,7 @@ static int intel_wait_lpm_transaction(struct hci_uart *hu)
return err;
}

+#ifdef CONFIG_PM
static int intel_lpm_suspend(struct hci_uart *hu)
{
static const u8 suspend[] = { 0x01, 0x01, 0x01 };
@@ -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)
{
--
1.9.1



2015-09-04 15:57:14

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] Bluetooth: hci_intel: Fix warnings due to unused lpm functions

Hi Loic,

> intel_lpm_suspend/resume are only used in case of CONFIG_PM.
>
> Signed-off-by: Loic Poulain <[email protected]>
> ---
> drivers/bluetooth/hci_intel.c | 2 ++
> 1 file changed, 2 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel