summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/acx.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-12-11 12:46:29 +0100
committerKalle Valo <kvalo@codeaurora.org>2017-12-14 14:44:31 +0200
commit7de241f3b705396fe21f45d38ba1247c522aae81 (patch)
tree2bddcca4599347d5623c545f0c6b7f33a90259d2 /drivers/net/wireless/ti/wlcore/acx.h
parente4779162f7377baa9fb9a044555ecaae22c3f125 (diff)
wlcore: fix unused function warning
The newly added wlcore_fw_sleep function is called conditionally, which causes a warning without CONFIG_PM: drivers/net/wireless/ti/wlcore/main.c:981:12: error: 'wlcore_fw_sleep' defined but not used [-Werror=unused-function] Instead of trying to keep track of what should be in the #ifdef and what should not, it's easier to mark the top-level suspend/resume functions as __maybe_unused so the compiler can silently drop all the unused code. Fixes: 37bf241b8e7b ("wlcore: allow elp during wowlan suspend") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/acx.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/acx.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/acx.h b/drivers/net/wireless/ti/wlcore/acx.h
index f46d7fdf9a00..7011c5d9599f 100644
--- a/drivers/net/wireless/ti/wlcore/acx.h
+++ b/drivers/net/wireless/ti/wlcore/acx.h
@@ -1129,10 +1129,8 @@ int wl12xx_acx_config_hangover(struct wl1271 *wl);
int wlcore_acx_average_rssi(struct wl1271 *wl, struct wl12xx_vif *wlvif,
s8 *avg_rssi);
-#ifdef CONFIG_PM
int wl1271_acx_default_rx_filter_enable(struct wl1271 *wl, bool enable,
enum rx_filter_action action);
int wl1271_acx_set_rx_filter(struct wl1271 *wl, u8 index, bool enable,
struct wl12xx_rx_filter *filter);
-#endif /* CONFIG_PM */
#endif /* __WL1271_ACX_H__ */