From: Loic Poulain Date: Fri, 4 Sep 2015 15:39:25 +0000 (+0200) Subject: Bluetooth: hci_intel: Fix warnings due to unused lpm functions X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a9cb0fe4895cae95b49934af6fdcc54aa04e723d;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_intel.c b/drivers/bluetooth/hci_intel.c index b4dc3c5b3841..215e8e9dd65f 100644 --- a/drivers/bluetooth/hci_intel.c +++ b/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) {