ti-wlan: fix compilation when Android PM is disabled
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 15:20:03 +0000 (18:20 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 12 Jul 2012 11:45:50 +0000 (14:45 +0300)
Fixes compilation of out-of-tree TI WLAN driver in Tizen.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c

index 80826a0..aa75e55 100644 (file)
@@ -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;
        }