rfkill: Fix compilation when PM is disabled

Add config macros for RFKILL_PM to fix compilation when
CONFIG_PM is disabled

Change-Id: I9fba48fb02d671885665354091101f3813426f57
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
(cherry picked from commit cba43d2faa48a68cff779890cdd49ba50443f186)
This commit is contained in:
Chintan Pandya
2011-11-29 13:11:40 +05:30
committed by Stephen Boyd
parent b9d0afc471
commit 1e19afeab5

View File

@@ -199,8 +199,11 @@ void rfkill_pause_polling(struct rfkill *rfkill);
* NOTE: not necessary for suspend/resume -- in that case the
* core stops polling anyway
*/
#ifdef CONFIG_RFKILL_PM
void rfkill_resume_polling(struct rfkill *rfkill);
#else
static inline void rfkill_resume_polling(struct rfkill *rfkill) { }
#endif
/**
* rfkill_unregister - Unregister a rfkill structure.