diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-11-10 12:56:40 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 13:26:45 -0500 |
commit | e39fdee1d7856817619326fa114438c146d74510 (patch) | |
tree | fb3730df3164aa6239571c2f39348afe74744fd9 /drivers/net/wireless/iwlwifi/iwl-6000.c | |
parent | 81baf6ec9c190ae128748cf2a026bff5cb811b70 (diff) |
iwlwifi: put all the isr related function under ops
There were two type of isr supported by iwlwifi devices.
legacy isr - only used by legacy devices (3945 & 4965)
ict isr - used by all new generation of iwlwifi devices
Move all the isr related functions into ops, the ict type of isr
supports only needed for newer devices.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-6000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index b1816900980c..21ac2817722e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -322,7 +322,13 @@ static struct iwl_lib_ops iwl6000_lib = { | |||
322 | .query_addr = iwlagn_eeprom_query_addr, | 322 | .query_addr = iwlagn_eeprom_query_addr, |
323 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, | 323 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
324 | }, | 324 | }, |
325 | .isr = iwl_isr_ict, | 325 | .isr_ops = { |
326 | .isr = iwl_isr_ict, | ||
327 | .free = iwl_free_isr_ict, | ||
328 | .alloc = iwl_alloc_isr_ict, | ||
329 | .reset = iwl_reset_ict, | ||
330 | .disable = iwl_disable_ict, | ||
331 | }, | ||
326 | .temp_ops = { | 332 | .temp_ops = { |
327 | .temperature = iwlagn_temperature, | 333 | .temperature = iwlagn_temperature, |
328 | }, | 334 | }, |
@@ -389,7 +395,13 @@ static struct iwl_lib_ops iwl6000g2b_lib = { | |||
389 | .query_addr = iwlagn_eeprom_query_addr, | 395 | .query_addr = iwlagn_eeprom_query_addr, |
390 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, | 396 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
391 | }, | 397 | }, |
392 | .isr = iwl_isr_ict, | 398 | .isr_ops = { |
399 | .isr = iwl_isr_ict, | ||
400 | .free = iwl_free_isr_ict, | ||
401 | .alloc = iwl_alloc_isr_ict, | ||
402 | .reset = iwl_reset_ict, | ||
403 | .disable = iwl_disable_ict, | ||
404 | }, | ||
393 | .temp_ops = { | 405 | .temp_ops = { |
394 | .temperature = iwlagn_temperature, | 406 | .temperature = iwlagn_temperature, |
395 | }, | 407 | }, |