linux/drivers/net/wireless
Arnd Bergmann 836856e3bd wireless: cw1200: use __maybe_unused to hide pm functions_
The cw1200 uses #ifdef to check for CONFIG_PM, but then
uses SIMPLE_DEV_PM_OPS, which leaves the references out when
CONFIG_PM_SLEEP is not defined, so we get a warning with
PM=y && PM_SLEEP=n:

drivers/net/wireless/st/cw1200/cw1200_spi.c:450:12: error: 'cw1200_spi_suspend' defined but not used [-Werror=unused-function]

This removes the incorrect #ifdef and instead uses a __maybe_unused
annotation to let the compiler know it can silently drop
the function definition.

For the DEV_PM_OPS definition, we can use an IS_ENABLED() check
to avoid defining the structure when CONFIG_PM is not set without
the #ifdef.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2016-03-08 12:32:52 +02:00
..
admtek
ath
atmel at76c50x-usb: avoid double usb_put_dev() after downloading internal firmware in at76_probe() 2016-03-07 14:24:06 +02:00
broadcom
cisco
intel * add support for thermal device / cooling device (Chaya Rachel) 2016-03-07 15:48:56 +02:00
intersil
marvell mwifiex: Added missing spaces around brackets 2016-03-07 14:31:24 +02:00
mediatek mt7601u: do not free dma_buf when ivp allocation fails 2016-03-07 14:39:05 +02:00
ralink rt2x00: add new rt2800usb device Buffalo WLI-UC-G450 2016-03-07 14:27:35 +02:00
realtek rtlwifi: Fix size of wireless mode variable 2016-03-08 12:31:17 +02:00
rsi
st wireless: cw1200: use __maybe_unused to hide pm functions_ 2016-03-08 12:32:52 +02:00
ti
zydas
Kconfig
mac80211_hwsim.c
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
wl3501_cs.c
wl3501.h