aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-09-22 12:02:10 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2010-10-07 18:52:34 -0400
commit14e8e4afeb7e90f1f2d3f2d3b54da57c27f59f38 (patch)
tree10ffce32b86fbbd429cbee4a83c81fc3ae0c64de /drivers
parent9597ebac91e5a88f558d236a51d776508d42a237 (diff)
iwlwifi: remove apm_ops.stop
Since all devices share the same operation here, there's no need to call it indirectly. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-1000.c1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-6000.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-eeprom.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c4
10 files changed, 6 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c
index 5bdfe9dcd070..db540910b110 100644
--- a/drivers/net/wireless/iwlwifi/iwl-1000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-1000.c
@@ -194,7 +194,6 @@ static struct iwl_lib_ops iwl1000_lib = {
194 .update_chain_flags = iwl_update_chain_flags, 194 .update_chain_flags = iwl_update_chain_flags,
195 .apm_ops = { 195 .apm_ops = {
196 .init = iwl_apm_init, 196 .init = iwl_apm_init,
197 .stop = iwl_apm_stop,
198 .config = iwl1000_nic_config, 197 .config = iwl1000_nic_config,
199 }, 198 },
200 .eeprom_ops = { 199 .eeprom_ops = {
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 824c9428efaa..b06a7bd8b285 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -2704,7 +2704,6 @@ static struct iwl_lib_ops iwl3945_lib = {
2704 .dump_nic_error_log = iwl3945_dump_nic_error_log, 2704 .dump_nic_error_log = iwl3945_dump_nic_error_log,
2705 .apm_ops = { 2705 .apm_ops = {
2706 .init = iwl3945_apm_init, 2706 .init = iwl3945_apm_init,
2707 .stop = iwl_apm_stop,
2708 .config = iwl3945_nic_config, 2707 .config = iwl3945_nic_config,
2709 }, 2708 },
2710 .eeprom_ops = { 2709 .eeprom_ops = {
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index cda4a319ed97..28ba563197cb 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -2266,7 +2266,6 @@ static struct iwl_lib_ops iwl4965_lib = {
2266 .set_channel_switch = iwl4965_hw_channel_switch, 2266 .set_channel_switch = iwl4965_hw_channel_switch,
2267 .apm_ops = { 2267 .apm_ops = {
2268 .init = iwl_apm_init, 2268 .init = iwl_apm_init,
2269 .stop = iwl_apm_stop,
2270 .config = iwl4965_nic_config, 2269 .config = iwl4965_nic_config,
2271 }, 2270 },
2272 .eeprom_ops = { 2271 .eeprom_ops = {
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index c90a16cdfaff..fd9fbc93ea1b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -368,7 +368,6 @@ static struct iwl_lib_ops iwl5000_lib = {
368 .set_channel_switch = iwl5000_hw_channel_switch, 368 .set_channel_switch = iwl5000_hw_channel_switch,
369 .apm_ops = { 369 .apm_ops = {
370 .init = iwl_apm_init, 370 .init = iwl_apm_init,
371 .stop = iwl_apm_stop,
372 .config = iwl5000_nic_config, 371 .config = iwl5000_nic_config,
373 }, 372 },
374 .eeprom_ops = { 373 .eeprom_ops = {
@@ -437,7 +436,6 @@ static struct iwl_lib_ops iwl5150_lib = {
437 .set_channel_switch = iwl5000_hw_channel_switch, 436 .set_channel_switch = iwl5000_hw_channel_switch,
438 .apm_ops = { 437 .apm_ops = {
439 .init = iwl_apm_init, 438 .init = iwl_apm_init,
440 .stop = iwl_apm_stop,
441 .config = iwl5000_nic_config, 439 .config = iwl5000_nic_config,
442 }, 440 },
443 .eeprom_ops = { 441 .eeprom_ops = {
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
index 02103a7ae1df..a45929ef22ec 100644
--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
@@ -308,7 +308,6 @@ static struct iwl_lib_ops iwl6000_lib = {
308 .set_channel_switch = iwl6000_hw_channel_switch, 308 .set_channel_switch = iwl6000_hw_channel_switch,
309 .apm_ops = { 309 .apm_ops = {
310 .init = iwl_apm_init, 310 .init = iwl_apm_init,
311 .stop = iwl_apm_stop,
312 .config = iwl6000_nic_config, 311 .config = iwl6000_nic_config,
313 }, 312 },
314 .eeprom_ops = { 313 .eeprom_ops = {
@@ -380,7 +379,6 @@ static struct iwl_lib_ops iwl6000g2b_lib = {
380 .set_channel_switch = iwl6000_hw_channel_switch, 379 .set_channel_switch = iwl6000_hw_channel_switch,
381 .apm_ops = { 380 .apm_ops = {
382 .init = iwl_apm_init, 381 .init = iwl_apm_init,
383 .stop = iwl_apm_stop,
384 .config = iwl6000_nic_config, 382 .config = iwl6000_nic_config,
385 }, 383 },
386 .eeprom_ops = { 384 .eeprom_ops = {
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 75472a3d87de..b1af79e7020a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2983,7 +2983,7 @@ static void __iwl_down(struct iwl_priv *priv)
2983 iwl_clear_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ); 2983 iwl_clear_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ);
2984 2984
2985 /* Stop the device, and put it in low power state */ 2985 /* Stop the device, and put it in low power state */
2986 priv->cfg->ops->lib->apm_ops.stop(priv); 2986 iwl_apm_stop(priv);
2987 2987
2988 exit: 2988 exit:
2989 memset(&priv->card_alive, 0, sizeof(struct iwl_alive_resp)); 2989 memset(&priv->card_alive, 0, sizeof(struct iwl_alive_resp));
@@ -4597,7 +4597,7 @@ static void __devexit iwl_pci_remove(struct pci_dev *pdev)
4597 * paths to avoid running iwl_down() at all before leaving driver. 4597 * paths to avoid running iwl_down() at all before leaving driver.
4598 * This (inexpensive) call *makes sure* device is reset. 4598 * This (inexpensive) call *makes sure* device is reset.
4599 */ 4599 */
4600 priv->cfg->ops->lib->apm_ops.stop(priv); 4600 iwl_apm_stop(priv);
4601 4601
4602 iwl_tt_exit(priv); 4602 iwl_tt_exit(priv);
4603 4603
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 5cd16a745bac..b3efbe02df67 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -2599,7 +2599,7 @@ int iwl_pci_suspend(struct pci_dev *pdev, pm_message_t state)
2599 * it will not call apm_ops.stop() to stop the DMA operation. 2599 * it will not call apm_ops.stop() to stop the DMA operation.
2600 * Calling apm_ops.stop here to make sure we stop the DMA. 2600 * Calling apm_ops.stop here to make sure we stop the DMA.
2601 */ 2601 */
2602 priv->cfg->ops->lib->apm_ops.stop(priv); 2602 iwl_apm_stop(priv);
2603 2603
2604 pci_save_state(pdev); 2604 pci_save_state(pdev);
2605 pci_disable_device(pdev); 2605 pci_disable_device(pdev);
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index ae77279d3d98..c01262cf7249 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -117,7 +117,6 @@ struct iwl_hcmd_utils_ops {
117 117
118struct iwl_apm_ops { 118struct iwl_apm_ops {
119 int (*init)(struct iwl_priv *priv); 119 int (*init)(struct iwl_priv *priv);
120 void (*stop)(struct iwl_priv *priv);
121 void (*config)(struct iwl_priv *priv); 120 void (*config)(struct iwl_priv *priv);
122}; 121};
123 122
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
index bd51b06288eb..66eccb12159d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c
+++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
@@ -603,7 +603,7 @@ err:
603 if (ret) 603 if (ret)
604 iwl_eeprom_free(priv); 604 iwl_eeprom_free(priv);
605 /* Reset chip to save power until we load uCode during "up". */ 605 /* Reset chip to save power until we load uCode during "up". */
606 priv->cfg->ops->lib->apm_ops.stop(priv); 606 iwl_apm_stop(priv);
607alloc_err: 607alloc_err:
608 return ret; 608 return ret;
609} 609}
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index c06b2189e09e..980c6096620a 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -2637,7 +2637,7 @@ static void __iwl3945_down(struct iwl_priv *priv)
2637 udelay(5); 2637 udelay(5);
2638 2638
2639 /* Stop the device, and put it in low power state */ 2639 /* Stop the device, and put it in low power state */
2640 priv->cfg->ops->lib->apm_ops.stop(priv); 2640 iwl_apm_stop(priv);
2641 2641
2642 exit: 2642 exit:
2643 memset(&priv->card_alive, 0, sizeof(struct iwl_alive_resp)); 2643 memset(&priv->card_alive, 0, sizeof(struct iwl_alive_resp));
@@ -4212,7 +4212,7 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)
4212 * paths to avoid running iwl_down() at all before leaving driver. 4212 * paths to avoid running iwl_down() at all before leaving driver.
4213 * This (inexpensive) call *makes sure* device is reset. 4213 * This (inexpensive) call *makes sure* device is reset.
4214 */ 4214 */
4215 priv->cfg->ops->lib->apm_ops.stop(priv); 4215 iwl_apm_stop(priv);
4216 4216
4217 /* make sure we flush any pending irq or 4217 /* make sure we flush any pending irq or
4218 * tasklet for the driver 4218 * tasklet for the driver