Revert "wlcore: Add missing PM call for wlcore_cmd_wait_for_event_or_timeout()"
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / drivers / net / wireless / ti / wlcore / cmd.c
index f48c3f62966d43f0f74c83f311958f89da62f3dc..761cf8573a805e272121fa05bf129f1ee600a10a 100644 (file)
@@ -35,7 +35,6 @@
 #include "wl12xx_80211.h"
 #include "cmd.h"
 #include "event.h"
-#include "ps.h"
 #include "tx.h"
 #include "hw_ops.h"
 
@@ -192,10 +191,6 @@ int wlcore_cmd_wait_for_event_or_timeout(struct wl1271 *wl,
 
        timeout_time = jiffies + msecs_to_jiffies(WL1271_EVENT_TIMEOUT);
 
-       ret = wl1271_ps_elp_wakeup(wl);
-       if (ret < 0)
-               return ret;
-
        do {
                if (time_after(jiffies, timeout_time)) {
                        wl1271_debug(DEBUG_CMD, "timeout waiting for event %d",
@@ -227,7 +222,6 @@ int wlcore_cmd_wait_for_event_or_timeout(struct wl1271 *wl,
        } while (!event);
 
 out:
-       wl1271_ps_elp_sleep(wl);
        kfree(events_vector);
        return ret;
 }