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
This commit is contained in:
Arunk Khandavalli 2016-11-22 21:20:43 +05:30 • committed by qcabuildsw
commit 649c009002

View file

@ -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",