iwlwifi: initialize spinlock before use
authorReinette Chatre <reinette.chatre@intel.com>
Mon, 14 Dec 2009 22:12:11 +0000 (14:12 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Dec 2009 16:32:10 +0000 (11:32 -0500)
commit731a29b74aa823e09a6547befce3f721bef32f86
treecea8d462b9a0ae35a52f4a3b1a4dd409b2b2ecc1
parentbc45a67079c916a9bd0a95b0b879cc0f259bac6e
iwlwifi: initialize spinlock before use

Recent powersaving work resulted in power management ops being called
during EEPROM initialization. The lock used by these functions is not
initialized at this time. Ensure lock is initialized before it is used.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl3945-base.c