2015-09-10 09:23:47

by Loic Poulain

[permalink] [raw]
Subject: [PATCH] Bluetooth: hci_intel: Fix warning due to unused pm functions

intel_suspend/resume depend on CONFIG_PM_SLEEP. They are unused in
other cases.

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 ad45b9a..49e2540 100644
--- a/drivers/bluetooth/hci_intel.c
+++ b/drivers/bluetooth/hci_intel.c
@@ -1207,7 +1207,9 @@ static int intel_resume_device(struct device *dev)

return 0;
}
+#endif

+#ifdef CONFIG_PM_SLEEP
static int intel_suspend(struct device *dev)
{
struct intel_device *idev = dev_get_drvdata(dev);
--
1.9.1


2015-09-10 13:24:08

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] Bluetooth: hci_intel: Fix warning due to unused pm functions

Hi Loic,

> intel_suspend/resume depend on CONFIG_PM_SLEEP. They are unused in
> other cases.
>
> Signed-off-by: Loic Poulain <[email protected]>
> ---
> drivers/bluetooth/hci_intel.c | 2 ++
> 1 file changed, 2 insertions(+)

I amended your previous patch and push it to bluetooth-next tree.

Regards

Marcel