diff options
author | Ben Cahill <ben.m.cahill@intel.com> | 2009-10-09 16:20:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:47:58 -0400 |
commit | b660d3adb8dd4ead54744c9269bae9338163020a (patch) | |
tree | 1fe12d7e532887565eddaa5a27a0d951aeb611fe /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 278d84051d1944080d4cfdba205af5f5ce4f4064 (diff) |
iwlagn, iwl3945: remove apm_reset() functions
Clean up device-specific apm_reset() functions and library infrastructure,
now that these reset() functions are no longer being used.
Signed-off-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 8cc3d50e7f59..33b38aa0d8c3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -118,49 +118,6 @@ int iwl5000_apm_init(struct iwl_priv *priv) | |||
118 | return ret; | 118 | return ret; |
119 | } | 119 | } |
120 | 120 | ||
121 | int iwl5000_apm_reset(struct iwl_priv *priv) | ||
122 | { | ||
123 | int ret = 0; | ||
124 | |||
125 | iwl_apm_stop_master(priv); | ||
126 | |||
127 | iwl_set_bit(priv, CSR_RESET, CSR_RESET_REG_FLAG_SW_RESET); | ||
128 | |||
129 | udelay(10); | ||
130 | |||
131 | |||
132 | /* FIXME: put here L1A -L0S w/a */ | ||
133 | |||
134 | if (priv->cfg->need_pll_cfg) | ||
135 | iwl_set_bit(priv, CSR_ANA_PLL_CFG, CSR50_ANA_PLL_CFG_VAL); | ||
136 | |||
137 | /* set "initialization complete" bit to move adapter | ||
138 | * D0U* --> D0A* state */ | ||
139 | iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE); | ||
140 | |||
141 | /* wait for clock stabilization */ | ||
142 | ret = iwl_poll_bit(priv, CSR_GP_CNTRL, | ||
143 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, | ||
144 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25000); | ||
145 | if (ret < 0) { | ||
146 | IWL_DEBUG_INFO(priv, "Failed to init the card\n"); | ||
147 | goto out; | ||
148 | } | ||
149 | |||
150 | /* enable DMA */ | ||
151 | iwl_write_prph(priv, APMG_CLK_EN_REG, APMG_CLK_VAL_DMA_CLK_RQT); | ||
152 | |||
153 | udelay(20); | ||
154 | |||
155 | /* disable L1-Active */ | ||
156 | iwl_set_bits_prph(priv, APMG_PCIDEV_STT_REG, | ||
157 | APMG_PCIDEV_STT_VAL_L1_ACT_DIS); | ||
158 | out: | ||
159 | |||
160 | return ret; | ||
161 | } | ||
162 | |||
163 | |||
164 | /* NIC configuration for 5000 series */ | 121 | /* NIC configuration for 5000 series */ |
165 | void iwl5000_nic_config(struct iwl_priv *priv) | 122 | void iwl5000_nic_config(struct iwl_priv *priv) |
166 | { | 123 | { |
@@ -1522,7 +1479,6 @@ struct iwl_lib_ops iwl5000_lib = { | |||
1522 | .update_chain_flags = iwl_update_chain_flags, | 1479 | .update_chain_flags = iwl_update_chain_flags, |
1523 | .apm_ops = { | 1480 | .apm_ops = { |
1524 | .init = iwl5000_apm_init, | 1481 | .init = iwl5000_apm_init, |
1525 | .reset = iwl5000_apm_reset, | ||
1526 | .stop = iwl_apm_stop, | 1482 | .stop = iwl_apm_stop, |
1527 | .config = iwl5000_nic_config, | 1483 | .config = iwl5000_nic_config, |
1528 | .set_pwr_src = iwl_set_pwr_src, | 1484 | .set_pwr_src = iwl_set_pwr_src, |
@@ -1574,7 +1530,6 @@ static struct iwl_lib_ops iwl5150_lib = { | |||
1574 | .update_chain_flags = iwl_update_chain_flags, | 1530 | .update_chain_flags = iwl_update_chain_flags, |
1575 | .apm_ops = { | 1531 | .apm_ops = { |
1576 | .init = iwl5000_apm_init, | 1532 | .init = iwl5000_apm_init, |
1577 | .reset = iwl5000_apm_reset, | ||
1578 | .stop = iwl_apm_stop, | 1533 | .stop = iwl_apm_stop, |
1579 | .config = iwl5000_nic_config, | 1534 | .config = iwl5000_nic_config, |
1580 | .set_pwr_src = iwl_set_pwr_src, | 1535 | .set_pwr_src = iwl_set_pwr_src, |