aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFry, Donald H <donald.h.fry@intel.com>2011-07-07 18:24:07 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-07-16 10:38:36 -0400
commit4caab328eeea02b244765c355f9d875f8f5f6093 (patch)
tree7dd30d169aac21b26aedb804ae35bd5334f3b991 /drivers
parent45d50024a766ef757f3ef7ca7d4f8fb38c5a79f0 (diff)
iwlagn: remove indirection for iwlagn_hw_valid_rtc_data_addr
Not needed since the driver split. Signed-off-by: Don Fry <donald.h.fry@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-2000.c2
-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.c6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h2
6 files changed, 3 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c
index e21f71855166..fe15a46e4c7e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-1000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-1000.c
@@ -170,7 +170,6 @@ static struct iwl_lib_ops iwl1000_lib = {
170 .set_hw_params = iwl1000_hw_set_hw_params, 170 .set_hw_params = iwl1000_hw_set_hw_params,
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,
174 .nic_config = iwl1000_nic_config, 173 .nic_config = iwl1000_nic_config,
175 .eeprom_ops = { 174 .eeprom_ops = {
176 .regulatory_bands = { 175 .regulatory_bands = {
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c
index 68ee25b99c1d..7e0f766e4364 100644
--- a/drivers/net/wireless/iwlwifi/iwl-2000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-2000.c
@@ -169,7 +169,6 @@ static struct iwl_lib_ops iwl2000_lib = {
169 .set_hw_params = iwl2000_hw_set_hw_params, 169 .set_hw_params = iwl2000_hw_set_hw_params,
170 .rx_handler_setup = iwlagn_rx_handler_setup, 170 .rx_handler_setup = iwlagn_rx_handler_setup,
171 .setup_deferred_work = iwlagn_setup_deferred_work, 171 .setup_deferred_work = iwlagn_setup_deferred_work,
172 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
173 .nic_config = iwl2000_nic_config, 172 .nic_config = iwl2000_nic_config,
174 .eeprom_ops = { 173 .eeprom_ops = {
175 .regulatory_bands = { 174 .regulatory_bands = {
@@ -191,7 +190,6 @@ static struct iwl_lib_ops iwl2030_lib = {
191 .rx_handler_setup = iwlagn_bt_rx_handler_setup, 190 .rx_handler_setup = iwlagn_bt_rx_handler_setup,
192 .setup_deferred_work = iwlagn_bt_setup_deferred_work, 191 .setup_deferred_work = iwlagn_bt_setup_deferred_work,
193 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work, 192 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
194 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
195 .nic_config = iwl2000_nic_config, 193 .nic_config = iwl2000_nic_config,
196 .eeprom_ops = { 194 .eeprom_ops = {
197 .regulatory_bands = { 195 .regulatory_bands = {
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 33b383cb676b..e0908784afc0 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -322,7 +322,6 @@ static struct iwl_lib_ops iwl5000_lib = {
322 .set_hw_params = iwl5000_hw_set_hw_params, 322 .set_hw_params = iwl5000_hw_set_hw_params,
323 .rx_handler_setup = iwlagn_rx_handler_setup, 323 .rx_handler_setup = iwlagn_rx_handler_setup,
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,
326 .set_channel_switch = iwl5000_hw_channel_switch, 325 .set_channel_switch = iwl5000_hw_channel_switch,
327 .nic_config = iwl5000_nic_config, 326 .nic_config = iwl5000_nic_config,
328 .eeprom_ops = { 327 .eeprom_ops = {
@@ -343,7 +342,6 @@ static struct iwl_lib_ops iwl5150_lib = {
343 .set_hw_params = iwl5150_hw_set_hw_params, 342 .set_hw_params = iwl5150_hw_set_hw_params,
344 .rx_handler_setup = iwlagn_rx_handler_setup, 343 .rx_handler_setup = iwlagn_rx_handler_setup,
345 .setup_deferred_work = iwlagn_setup_deferred_work, 344 .setup_deferred_work = iwlagn_setup_deferred_work,
346 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
347 .set_channel_switch = iwl5000_hw_channel_switch, 345 .set_channel_switch = iwl5000_hw_channel_switch,
348 .nic_config = iwl5000_nic_config, 346 .nic_config = iwl5000_nic_config,
349 .eeprom_ops = { 347 .eeprom_ops = {
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
index cffff09a7973..3b2d753b3463 100644
--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
@@ -260,7 +260,6 @@ static struct iwl_lib_ops iwl6000_lib = {
260 .set_hw_params = iwl6000_hw_set_hw_params, 260 .set_hw_params = iwl6000_hw_set_hw_params,
261 .rx_handler_setup = iwlagn_rx_handler_setup, 261 .rx_handler_setup = iwlagn_rx_handler_setup,
262 .setup_deferred_work = iwlagn_setup_deferred_work, 262 .setup_deferred_work = iwlagn_setup_deferred_work,
263 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
264 .set_channel_switch = iwl6000_hw_channel_switch, 263 .set_channel_switch = iwl6000_hw_channel_switch,
265 .nic_config = iwl6000_nic_config, 264 .nic_config = iwl6000_nic_config,
266 .eeprom_ops = { 265 .eeprom_ops = {
@@ -283,7 +282,6 @@ static struct iwl_lib_ops iwl6030_lib = {
283 .rx_handler_setup = iwlagn_bt_rx_handler_setup, 282 .rx_handler_setup = iwlagn_bt_rx_handler_setup,
284 .setup_deferred_work = iwlagn_bt_setup_deferred_work, 283 .setup_deferred_work = iwlagn_bt_setup_deferred_work,
285 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work, 284 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
286 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
287 .set_channel_switch = iwl6000_hw_channel_switch, 285 .set_channel_switch = iwl6000_hw_channel_switch,
288 .nic_config = iwl6000_nic_config, 286 .nic_config = iwl6000_nic_config,
289 .eeprom_ops = { 287 .eeprom_ops = {
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 41c3e15104ad..c2a124131ef9 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -375,7 +375,7 @@ static void iwl_continuous_event_trace(struct iwl_priv *priv)
375 u32 next_entry; /* index of next entry to be written by uCode */ 375 u32 next_entry; /* index of next entry to be written by uCode */
376 376
377 base = priv->device_pointers.error_event_table; 377 base = priv->device_pointers.error_event_table;
378 if (priv->cfg->lib->is_valid_rtc_data_addr(base)) { 378 if (iwlagn_hw_valid_rtc_data_addr(base)) {
379 capacity = iwl_read_targ_mem(priv, base); 379 capacity = iwl_read_targ_mem(priv, base);
380 num_wraps = iwl_read_targ_mem(priv, base + (2 * sizeof(u32))); 380 num_wraps = iwl_read_targ_mem(priv, base + (2 * sizeof(u32)));
381 mode = iwl_read_targ_mem(priv, base + (1 * sizeof(u32))); 381 mode = iwl_read_targ_mem(priv, base + (1 * sizeof(u32)));
@@ -1614,7 +1614,7 @@ void iwl_dump_nic_error_log(struct iwl_priv *priv)
1614 base = priv->_agn.inst_errlog_ptr; 1614 base = priv->_agn.inst_errlog_ptr;
1615 } 1615 }
1616 1616
1617 if (!priv->cfg->lib->is_valid_rtc_data_addr(base)) { 1617 if (!iwlagn_hw_valid_rtc_data_addr(base)) {
1618 IWL_ERR(priv, 1618 IWL_ERR(priv,
1619 "Not valid error log pointer 0x%08X for %s uCode\n", 1619 "Not valid error log pointer 0x%08X for %s uCode\n",
1620 base, 1620 base,
@@ -1805,7 +1805,7 @@ int iwl_dump_nic_event_log(struct iwl_priv *priv, bool full_log,
1805 base = priv->_agn.inst_evtlog_ptr; 1805 base = priv->_agn.inst_evtlog_ptr;
1806 } 1806 }
1807 1807
1808 if (!priv->cfg->lib->is_valid_rtc_data_addr(base)) { 1808 if (!iwlagn_hw_valid_rtc_data_addr(base)) {
1809 IWL_ERR(priv, 1809 IWL_ERR(priv,
1810 "Invalid event log pointer 0x%08X for %s uCode\n", 1810 "Invalid event log pointer 0x%08X for %s uCode\n",
1811 base, 1811 base,
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index 51873180c81a..2318052e094b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -89,8 +89,6 @@ struct iwl_lib_ops {
89 void (*setup_deferred_work)(struct iwl_priv *priv); 89 void (*setup_deferred_work)(struct iwl_priv *priv);
90 /* cancel deferred work */ 90 /* cancel deferred work */
91 void (*cancel_deferred_work)(struct iwl_priv *priv); 91 void (*cancel_deferred_work)(struct iwl_priv *priv);
92 /* check validity of rtc data address */
93 int (*is_valid_rtc_data_addr)(u32 addr);
94 int (*set_channel_switch)(struct iwl_priv *priv, 92 int (*set_channel_switch)(struct iwl_priv *priv,
95 struct ieee80211_channel_switch *ch_switch); 93 struct ieee80211_channel_switch *ch_switch);
96 /* device specific configuration */ 94 /* device specific configuration */