summaryrefslogtreecommitdiff
path: root/ti-wlan
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-07-03 18:20:03 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-07-12 14:45:50 +0300
commit9d5ba7e69bd125e751e7287bb2e75e8d0c3cbe85 (patch)
treee2eb29e2862aeccc8a10f8f10614b61eb8e7a65a /ti-wlan
parent3dc048daff2c0d123aceacc79c33119c1a05fb6e (diff)
downloadkernel-mfld-blackbay-9d5ba7e69bd125e751e7287bb2e75e8d0c3cbe85.tar.gz
kernel-mfld-blackbay-9d5ba7e69bd125e751e7287bb2e75e8d0c3cbe85.tar.bz2
kernel-mfld-blackbay-9d5ba7e69bd125e751e7287bb2e75e8d0c3cbe85.zip
ti-wlan: fix compilation when Android PM is disabled
Fixes compilation of out-of-tree TI WLAN driver in Tizen. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'ti-wlan')
-rw-r--r--ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c b/ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c
index 80826a09927..aa75e55ae40 100644
--- a/ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c
+++ b/ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c
@@ -2036,7 +2036,9 @@ static int wl1271_op_suspend(struct ieee80211_hw *hw,
/* Do not suspend when a fw recovery is in progress */
if (test_bit(WL1271_FLAG_RECOVERY_WORK_PENDING, &wl->flags)) {
+#ifdef CONFIG_HAS_WAKELOCK
wake_lock_timeout(&wl->wake_lock, 5*HZ);
+#endif
return -EBUSY;
}