iwlwifi: iwl_power_update_mode always hold mutex
authorReinette Chatre <reinette.chatre@intel.com>
Thu, 21 Jan 2010 19:52:28 +0000 (11:52 -0800)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 29 Jan 2010 19:13:59 +0000 (11:13 -0800)
commitd3a571971e5af241074947fc80f6284677f6e014
treed01bb4af20ecfadf36626fb57f3d0918b9653d14
parent7ae810776a51dc4dc6580013b0f6ba0f34d2b165
iwlwifi: iwl_power_update_mode always hold mutex

iwl_power_update_mode expects to be called with mutex held, for example to
protect priv->vif. Only one caller currently does not do this, fix this.
Also, add a comment to iwl_power_update_mode to indicate this requirement.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-debugfs.c
drivers/net/wireless/iwlwifi/iwl-power.c