diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2013-05-29 22:22:05 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-05-30 14:42:47 -0400 |
commit | 4e17b87e792ed19e75a96eea618b90510265120c (patch) | |
tree | 4fffe1993ffd22606b5739a466ec8b4692510a01 /drivers/net/wireless/cw1200/pm.h | |
parent | b0a1ae976d6cd40ff90ba87883e17eb2610dae3d (diff) |
cw1200: Fix compile with CONFIG_PM=n
Intel's 0-day kernel build tester caught this build failure. This patch
properly wraps everything that depends on CONFIG_PM.
Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/cw1200/pm.h')
-rw-r--r-- | drivers/net/wireless/cw1200/pm.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/wireless/cw1200/pm.h b/drivers/net/wireless/cw1200/pm.h index 516d9671dd1..3ed90ff22bb 100644 --- a/drivers/net/wireless/cw1200/pm.h +++ b/drivers/net/wireless/cw1200/pm.h @@ -25,14 +25,19 @@ struct cw1200_pm_state { spinlock_t lock; /* Protect access */ }; +#ifdef CONFIG_PM int cw1200_pm_init(struct cw1200_pm_state *pm, struct cw1200_common *priv); void cw1200_pm_deinit(struct cw1200_pm_state *pm); -void cw1200_pm_stay_awake(struct cw1200_pm_state *pm, - unsigned long tmo); int cw1200_wow_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan); int cw1200_wow_resume(struct ieee80211_hw *hw); int cw1200_can_suspend(struct cw1200_common *priv); - +void cw1200_pm_stay_awake(struct cw1200_pm_state *pm, + unsigned long tmo); +#else +static inline void cw1200_pm_stay_awake(struct cw1200_pm_state *pm, + unsigned long tmo) { +} +#endif #endif |