]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: fix undefined symbols when CONFIG_PM is not defined
authorEyal Shapira <eyal@wizery.com>
Tue, 29 May 2012 08:28:42 +0000 (01:28 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 May 2012 17:45:23 +0000 (13:45 -0400)
commit2ceca96981ac07bd632e6b08632aba7ccbd292b7
tree6258fbd633de578e5a9a378bcebc6f0a1310689f
parent4cc4e41b89658caf31bccbf2782571154a8bcaed
wlcore: fix undefined symbols when CONFIG_PM is not defined

commit d12821a8da6a61218438898af7dc7cbb07a264d1
"wl12xx: add RX filters ACX commands" breaks the build
when CONFIG_PM isn't defined:

ERROR: "wl1271_rx_filter_get_fields_size"
[drivers/net/wireless/ti/wlcore/wlcore.ko] undefined!
ERROR: "wl1271_rx_filter_flatten_fields"
[drivers/net/wireless/ti/wlcore/wlcore.ko] undefined!

code in drivers/net/wireless/ti/wlcore/acx.c is using these
functions unconditionally while they are #ifdefed CONFIG_PM.
Fix it by ifdefing all relevant RX filters code with CONFIG_PM.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Acked-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wlcore/acx.c
drivers/net/wireless/ti/wlcore/acx.h
drivers/net/wireless/ti/wlcore/rx.c