From 649c00900252c2e726bb7a42466c7fcf898487d4 Mon Sep 17 00:00:00 2001 From: Arunk Khandavalli Date: Tue, 22 Nov 2016 21:20:43 +0530 Subject: [PATCH] qcacld-3.0: Do not invoke pld_power_off during the module exit Platform driver takes care of power off sequence during the module exit. Do not invoke the pld_power_off during the unload sequence. Change-Id: Ib6d2e192849076acb60e0e6ebbbb9e5ed5938c2b CRs-Fixed: 1093190 --- core/hdd/src/wlan_hdd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index d463b1007bbc..3766da88c96c 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7883,7 +7883,7 @@ int hdd_wlan_stop_modules(hdd_context_t *hdd_ctx) ol_cds_free(); - if (!cds_is_driver_recovering()) { + if (!cds_is_driver_recovering() && !cds_is_driver_unloading()) { ret = pld_power_off(qdf_ctx->dev); if (ret) hdd_err("CNSS power down failed put device into Low power mode:%d",