mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
iwlwifi: call apm stop on exit
This patch calls apm stop on exit and suspend. Without this patch hardware consumes power even after driver is removed or suspended. Signed-off-by: Gregory Greenman <[email protected]> Signed-off-by: Mohamed Abbas <[email protected]> Signed-off-by: Tomas Winkler <[email protected]> Signed-off-by: Zhu Yi <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
73b7d74251
commit
d535311ecb
1 changed files with 4 additions and 1 deletions
|
|
@ -2187,7 +2187,10 @@ static void __iwl4965_down(struct iwl_priv *priv)
|
|||
udelay(5);
|
||||
|
||||
/* FIXME: apm_ops.suspend(priv) */
|
||||
priv->cfg->ops->lib->apm_ops.reset(priv);
|
||||
if (exit_pending || test_bit(STATUS_IN_SUSPEND, &priv->status))
|
||||
priv->cfg->ops->lib->apm_ops.stop(priv);
|
||||
else
|
||||
priv->cfg->ops->lib->apm_ops.reset(priv);
|
||||
priv->cfg->ops->lib->free_shared_mem(priv);
|
||||
|
||||
exit:
|
||||
|
|
|
|||
Loading…
Reference in a new issue