aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 157cad4e9da0..017e5ea58de6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -1631,12 +1631,6 @@ static int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel)
1631} 1631}
1632#endif 1632#endif
1633 1633
1634static int iwl4965_shared_mem_rx_idx(struct iwl_priv *priv)
1635{
1636 struct iwl4965_shared *s = priv->shared_virt;
1637 return le32_to_cpu(s->rb_closed) & 0xFFF;
1638}
1639
1640static int iwl4965_alloc_shared_mem(struct iwl_priv *priv) 1634static int iwl4965_alloc_shared_mem(struct iwl_priv *priv)
1641{ 1635{
1642 priv->shared_virt = pci_alloc_consistent(priv->pci_dev, 1636 priv->shared_virt = pci_alloc_consistent(priv->pci_dev,
@@ -1647,8 +1641,6 @@ static int iwl4965_alloc_shared_mem(struct iwl_priv *priv)
1647 1641
1648 memset(priv->shared_virt, 0, sizeof(struct iwl4965_shared)); 1642 memset(priv->shared_virt, 0, sizeof(struct iwl4965_shared));
1649 1643
1650 priv->rb_closed_offset = offsetof(struct iwl4965_shared, rb_closed);
1651
1652 return 0; 1644 return 0;
1653} 1645}
1654 1646
@@ -2306,7 +2298,6 @@ static struct iwl_lib_ops iwl4965_lib = {
2306 .set_hw_params = iwl4965_hw_set_hw_params, 2298 .set_hw_params = iwl4965_hw_set_hw_params,
2307 .alloc_shared_mem = iwl4965_alloc_shared_mem, 2299 .alloc_shared_mem = iwl4965_alloc_shared_mem,
2308 .free_shared_mem = iwl4965_free_shared_mem, 2300 .free_shared_mem = iwl4965_free_shared_mem,
2309 .shared_mem_rx_idx = iwl4965_shared_mem_rx_idx,
2310 .txq_update_byte_cnt_tbl = iwl4965_txq_update_byte_cnt_tbl, 2301 .txq_update_byte_cnt_tbl = iwl4965_txq_update_byte_cnt_tbl,
2311 .txq_set_sched = iwl4965_txq_set_sched, 2302 .txq_set_sched = iwl4965_txq_set_sched,
2312 .txq_agg_enable = iwl4965_txq_agg_enable, 2303 .txq_agg_enable = iwl4965_txq_agg_enable,