diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 9 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-eeprom.c | 2 |
7 files changed, 11 insertions, 34 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index 11f10c13af57..5be27672eb90 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -171,10 +171,7 @@ static struct iwl_lib_ops iwl1000_lib = { | |||
171 | .rx_handler_setup = iwlagn_rx_handler_setup, | 171 | .rx_handler_setup = iwlagn_rx_handler_setup, |
172 | .setup_deferred_work = iwlagn_setup_deferred_work, | 172 | .setup_deferred_work = iwlagn_setup_deferred_work, |
173 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | 173 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, |
174 | .apm_ops = { | 174 | .nic_config = iwl1000_nic_config, |
175 | .init = iwl_apm_init, | ||
176 | .config = iwl1000_nic_config, | ||
177 | }, | ||
178 | .eeprom_ops = { | 175 | .eeprom_ops = { |
179 | .regulatory_bands = { | 176 | .regulatory_bands = { |
180 | EEPROM_REG_BAND_1_CHANNELS, | 177 | EEPROM_REG_BAND_1_CHANNELS, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index 953e9672a6a7..2580dc36f475 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -171,10 +171,7 @@ static struct iwl_lib_ops iwl2000_lib = { | |||
171 | .setup_deferred_work = iwlagn_bt_setup_deferred_work, | 171 | .setup_deferred_work = iwlagn_bt_setup_deferred_work, |
172 | .cancel_deferred_work = iwlagn_bt_cancel_deferred_work, | 172 | .cancel_deferred_work = iwlagn_bt_cancel_deferred_work, |
173 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | 173 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, |
174 | .apm_ops = { | 174 | .nic_config = iwl2000_nic_config, |
175 | .init = iwl_apm_init, | ||
176 | .config = iwl2000_nic_config, | ||
177 | }, | ||
178 | .eeprom_ops = { | 175 | .eeprom_ops = { |
179 | .regulatory_bands = { | 176 | .regulatory_bands = { |
180 | EEPROM_REG_BAND_1_CHANNELS, | 177 | EEPROM_REG_BAND_1_CHANNELS, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index f6bc02f68f45..1d9bae376d27 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -324,10 +324,7 @@ static struct iwl_lib_ops iwl5000_lib = { | |||
324 | .setup_deferred_work = iwlagn_setup_deferred_work, | 324 | .setup_deferred_work = iwlagn_setup_deferred_work, |
325 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | 325 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, |
326 | .set_channel_switch = iwl5000_hw_channel_switch, | 326 | .set_channel_switch = iwl5000_hw_channel_switch, |
327 | .apm_ops = { | 327 | .nic_config = iwl5000_nic_config, |
328 | .init = iwl_apm_init, | ||
329 | .config = iwl5000_nic_config, | ||
330 | }, | ||
331 | .eeprom_ops = { | 328 | .eeprom_ops = { |
332 | .regulatory_bands = { | 329 | .regulatory_bands = { |
333 | EEPROM_REG_BAND_1_CHANNELS, | 330 | EEPROM_REG_BAND_1_CHANNELS, |
@@ -351,10 +348,7 @@ static struct iwl_lib_ops iwl5150_lib = { | |||
351 | .setup_deferred_work = iwlagn_setup_deferred_work, | 348 | .setup_deferred_work = iwlagn_setup_deferred_work, |
352 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | 349 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, |
353 | .set_channel_switch = iwl5000_hw_channel_switch, | 350 | .set_channel_switch = iwl5000_hw_channel_switch, |
354 | .apm_ops = { | 351 | .nic_config = iwl5000_nic_config, |
355 | .init = iwl_apm_init, | ||
356 | .config = iwl5000_nic_config, | ||
357 | }, | ||
358 | .eeprom_ops = { | 352 | .eeprom_ops = { |
359 | .regulatory_bands = { | 353 | .regulatory_bands = { |
360 | EEPROM_REG_BAND_1_CHANNELS, | 354 | EEPROM_REG_BAND_1_CHANNELS, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 91418fa38fcc..73ea73eafc55 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -264,10 +264,7 @@ static struct iwl_lib_ops iwl6000_lib = { | |||
264 | .setup_deferred_work = iwlagn_setup_deferred_work, | 264 | .setup_deferred_work = iwlagn_setup_deferred_work, |
265 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | 265 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, |
266 | .set_channel_switch = iwl6000_hw_channel_switch, | 266 | .set_channel_switch = iwl6000_hw_channel_switch, |
267 | .apm_ops = { | 267 | .nic_config = iwl6000_nic_config, |
268 | .init = iwl_apm_init, | ||
269 | .config = iwl6000_nic_config, | ||
270 | }, | ||
271 | .eeprom_ops = { | 268 | .eeprom_ops = { |
272 | .regulatory_bands = { | 269 | .regulatory_bands = { |
273 | EEPROM_REG_BAND_1_CHANNELS, | 270 | EEPROM_REG_BAND_1_CHANNELS, |
@@ -293,10 +290,7 @@ static struct iwl_lib_ops iwl6030_lib = { | |||
293 | .cancel_deferred_work = iwlagn_bt_cancel_deferred_work, | 290 | .cancel_deferred_work = iwlagn_bt_cancel_deferred_work, |
294 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, | 291 | .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, |
295 | .set_channel_switch = iwl6000_hw_channel_switch, | 292 | .set_channel_switch = iwl6000_hw_channel_switch, |
296 | .apm_ops = { | 293 | .nic_config = iwl6000_nic_config, |
297 | .init = iwl_apm_init, | ||
298 | .config = iwl6000_nic_config, | ||
299 | }, | ||
300 | .eeprom_ops = { | 294 | .eeprom_ops = { |
301 | .regulatory_bands = { | 295 | .regulatory_bands = { |
302 | EEPROM_REG_BAND_1_CHANNELS, | 296 | EEPROM_REG_BAND_1_CHANNELS, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index c7102bbba0f2..f787ef5c9d4d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |||
@@ -703,7 +703,7 @@ int iwlagn_hw_nic_init(struct iwl_priv *priv) | |||
703 | 703 | ||
704 | /* nic_init */ | 704 | /* nic_init */ |
705 | spin_lock_irqsave(&priv->lock, flags); | 705 | spin_lock_irqsave(&priv->lock, flags); |
706 | priv->cfg->ops->lib->apm_ops.init(priv); | 706 | iwl_apm_init(priv); |
707 | 707 | ||
708 | /* Set interrupt coalescing calibration timer to default (512 usecs) */ | 708 | /* Set interrupt coalescing calibration timer to default (512 usecs) */ |
709 | iwl_write8(priv, CSR_INT_COALESCING, IWL_HOST_INT_CALIB_TIMEOUT_DEF); | 709 | iwl_write8(priv, CSR_INT_COALESCING, IWL_HOST_INT_CALIB_TIMEOUT_DEF); |
@@ -712,7 +712,7 @@ int iwlagn_hw_nic_init(struct iwl_priv *priv) | |||
712 | 712 | ||
713 | iwlagn_set_pwr_vmain(priv); | 713 | iwlagn_set_pwr_vmain(priv); |
714 | 714 | ||
715 | priv->cfg->ops->lib->apm_ops.config(priv); | 715 | priv->cfg->ops->lib->nic_config(priv); |
716 | 716 | ||
717 | /* Allocate the RX queue, or reset if it is already allocated */ | 717 | /* Allocate the RX queue, or reset if it is already allocated */ |
718 | trans_rx_init(priv); | 718 | trans_rx_init(priv); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index e1ab1a17e7f5..47cfbb9ddaf7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -96,11 +96,6 @@ struct iwl_hcmd_utils_ops { | |||
96 | int (*request_scan)(struct iwl_priv *priv, struct ieee80211_vif *vif); | 96 | int (*request_scan)(struct iwl_priv *priv, struct ieee80211_vif *vif); |
97 | }; | 97 | }; |
98 | 98 | ||
99 | struct iwl_apm_ops { | ||
100 | int (*init)(struct iwl_priv *priv); | ||
101 | void (*config)(struct iwl_priv *priv); | ||
102 | }; | ||
103 | |||
104 | struct iwl_temp_ops { | 99 | struct iwl_temp_ops { |
105 | void (*temperature)(struct iwl_priv *priv); | 100 | void (*temperature)(struct iwl_priv *priv); |
106 | }; | 101 | }; |
@@ -118,8 +113,8 @@ struct iwl_lib_ops { | |||
118 | int (*is_valid_rtc_data_addr)(u32 addr); | 113 | int (*is_valid_rtc_data_addr)(u32 addr); |
119 | int (*set_channel_switch)(struct iwl_priv *priv, | 114 | int (*set_channel_switch)(struct iwl_priv *priv, |
120 | struct ieee80211_channel_switch *ch_switch); | 115 | struct ieee80211_channel_switch *ch_switch); |
121 | /* power management */ | 116 | /* device specific configuration */ |
122 | struct iwl_apm_ops apm_ops; | 117 | void (*nic_config)(struct iwl_priv *priv); |
123 | 118 | ||
124 | /* eeprom operations (as defined in iwl-eeprom.h) */ | 119 | /* eeprom operations (as defined in iwl-eeprom.h) */ |
125 | struct iwl_eeprom_ops eeprom_ops; | 120 | struct iwl_eeprom_ops eeprom_ops; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c index 768d0ee276f7..eab2834fc0c6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c +++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c | |||
@@ -449,7 +449,7 @@ int iwl_eeprom_init(struct iwl_priv *priv, u32 hw_rev) | |||
449 | } | 449 | } |
450 | e = (__le16 *)priv->eeprom; | 450 | e = (__le16 *)priv->eeprom; |
451 | 451 | ||
452 | priv->cfg->ops->lib->apm_ops.init(priv); | 452 | iwl_apm_init(priv); |
453 | 453 | ||
454 | ret = iwl_eeprom_verify_signature(priv); | 454 | ret = iwl_eeprom_verify_signature(priv); |
455 | if (ret < 0) { | 455 | if (ret < 0) { |