wlcore: fix unused function warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 11 Dec 2017 11:46:29 +0000 (12:46 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 14 Dec 2017 12:44:31 +0000 (14:44 +0200)
commit7de241f3b705396fe21f45d38ba1247c522aae81
tree2bddcca4599347d5623c545f0c6b7f33a90259d2
parente4779162f7377baa9fb9a044555ecaae22c3f125
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>
drivers/net/wireless/ti/wlcore/acx.h
drivers/net/wireless/ti/wlcore/main.c