diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-02-03 11:31:58 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:56:11 -0500 |
commit | c39ae9fd505ae314a7a4a159a41e3e022cfa317f (patch) | |
tree | 246d8cffde50f436bd598292d01a268fc7392431 /drivers/net/wireless/iwlegacy/3945.c | |
parent | 83007196037cc2d0bffd9f7afbe56d675779a6cb (diff) |
iwlegacy: move ops out of config
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/3945.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945.c b/drivers/net/wireless/iwlegacy/3945.c index 1e617c9fc3cc..918cbefd657a 100644 --- a/drivers/net/wireless/iwlegacy/3945.c +++ b/drivers/net/wireless/iwlegacy/3945.c | |||
@@ -303,7 +303,7 @@ il3945_tx_queue_reclaim(struct il_priv *il, int txq_id, int idx) | |||
303 | tx_info = &txq->txb[txq->q.read_ptr]; | 303 | tx_info = &txq->txb[txq->q.read_ptr]; |
304 | ieee80211_tx_status_irqsafe(il->hw, tx_info->skb); | 304 | ieee80211_tx_status_irqsafe(il->hw, tx_info->skb); |
305 | tx_info->skb = NULL; | 305 | tx_info->skb = NULL; |
306 | il->cfg->ops->lib->txq_free_tfd(il, txq); | 306 | il->ops->lib->txq_free_tfd(il, txq); |
307 | } | 307 | } |
308 | 308 | ||
309 | if (il_queue_space(q) > q->low_mark && txq_id >= 0 && | 309 | if (il_queue_space(q) > q->low_mark && txq_id >= 0 && |
@@ -960,12 +960,12 @@ il3945_hw_nic_init(struct il_priv *il) | |||
960 | struct il_rx_queue *rxq = &il->rxq; | 960 | struct il_rx_queue *rxq = &il->rxq; |
961 | 961 | ||
962 | spin_lock_irqsave(&il->lock, flags); | 962 | spin_lock_irqsave(&il->lock, flags); |
963 | il->cfg->ops->lib->apm_ops.init(il); | 963 | il->ops->lib->apm_ops.init(il); |
964 | spin_unlock_irqrestore(&il->lock, flags); | 964 | spin_unlock_irqrestore(&il->lock, flags); |
965 | 965 | ||
966 | il3945_set_pwr_vmain(il); | 966 | il3945_set_pwr_vmain(il); |
967 | 967 | ||
968 | il->cfg->ops->lib->apm_ops.config(il); | 968 | il->ops->lib->apm_ops.config(il); |
969 | 969 | ||
970 | /* Allocate the RX queue, or reset if it is already allocated */ | 970 | /* Allocate the RX queue, or reset if it is already allocated */ |
971 | if (!rxq->bd) { | 971 | if (!rxq->bd) { |
@@ -1615,7 +1615,7 @@ il3945_hw_reg_comp_txpower_temp(struct il_priv *il) | |||
1615 | } | 1615 | } |
1616 | 1616 | ||
1617 | /* send Txpower command for current channel to ucode */ | 1617 | /* send Txpower command for current channel to ucode */ |
1618 | return il->cfg->ops->lib->send_tx_power(il); | 1618 | return il->ops->lib->send_tx_power(il); |
1619 | } | 1619 | } |
1620 | 1620 | ||
1621 | int | 1621 | int |
@@ -2685,13 +2685,12 @@ static struct il_hcmd_utils_ops il3945_hcmd_utils = { | |||
2685 | .post_scan = il3945_post_scan, | 2685 | .post_scan = il3945_post_scan, |
2686 | }; | 2686 | }; |
2687 | 2687 | ||
2688 | static const struct il_ops il3945_ops = { | 2688 | const struct il_ops il3945_ops = { |
2689 | .lib = &il3945_lib, | 2689 | .lib = &il3945_lib, |
2690 | .hcmd = &il3945_hcmd, | 2690 | .hcmd = &il3945_hcmd, |
2691 | .utils = &il3945_hcmd_utils, | 2691 | .utils = &il3945_hcmd_utils, |
2692 | .led = &il3945_led_ops, | 2692 | .led = &il3945_led_ops, |
2693 | .legacy = &il3945_legacy_ops, | 2693 | .legacy = &il3945_legacy_ops, |
2694 | .ieee80211_ops = &il3945_hw_ops, | ||
2695 | }; | 2694 | }; |
2696 | 2695 | ||
2697 | static struct il_base_params il3945_base_params = { | 2696 | static struct il_base_params il3945_base_params = { |
@@ -2711,7 +2710,6 @@ static struct il_cfg il3945_bg_cfg = { | |||
2711 | .ucode_api_min = IL3945_UCODE_API_MIN, | 2710 | .ucode_api_min = IL3945_UCODE_API_MIN, |
2712 | .sku = IL_SKU_G, | 2711 | .sku = IL_SKU_G, |
2713 | .eeprom_ver = EEPROM_3945_EEPROM_VERSION, | 2712 | .eeprom_ver = EEPROM_3945_EEPROM_VERSION, |
2714 | .ops = &il3945_ops, | ||
2715 | .mod_params = &il3945_mod_params, | 2713 | .mod_params = &il3945_mod_params, |
2716 | .base_params = &il3945_base_params, | 2714 | .base_params = &il3945_base_params, |
2717 | .led_mode = IL_LED_BLINK, | 2715 | .led_mode = IL_LED_BLINK, |
@@ -2724,7 +2722,6 @@ static struct il_cfg il3945_abg_cfg = { | |||
2724 | .ucode_api_min = IL3945_UCODE_API_MIN, | 2722 | .ucode_api_min = IL3945_UCODE_API_MIN, |
2725 | .sku = IL_SKU_A | IL_SKU_G, | 2723 | .sku = IL_SKU_A | IL_SKU_G, |
2726 | .eeprom_ver = EEPROM_3945_EEPROM_VERSION, | 2724 | .eeprom_ver = EEPROM_3945_EEPROM_VERSION, |
2727 | .ops = &il3945_ops, | ||
2728 | .mod_params = &il3945_mod_params, | 2725 | .mod_params = &il3945_mod_params, |
2729 | .base_params = &il3945_base_params, | 2726 | .base_params = &il3945_base_params, |
2730 | .led_mode = IL_LED_BLINK, | 2727 | .led_mode = IL_LED_BLINK, |