aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/dvm/main.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-05-31 07:54:56 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-06-06 07:26:00 -0400
commitb1abedada3fd0aa100723aa9b60b7e31c17945cb (patch)
treea9f22ca1d9b16858e6dc72d0f1e354d315fcf39e /drivers/net/wireless/iwlwifi/dvm/main.c
parent1280d428ad0f134d1e370a0a0b70793ebcf56742 (diff)
iwlwifi: remove extern opmode ops declarations
There's no need to declare the opmode ops as extern since they're now dynamically registered. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/main.c')
-rw-r--r--drivers/net/wireless/iwlwifi/dvm/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/main.c b/drivers/net/wireless/iwlwifi/dvm/main.c
index ec0b77b862a8..1c2d0233a405 100644
--- a/drivers/net/wireless/iwlwifi/dvm/main.c
+++ b/drivers/net/wireless/iwlwifi/dvm/main.c
@@ -81,6 +81,8 @@ MODULE_VERSION(DRV_VERSION);
81MODULE_AUTHOR(DRV_COPYRIGHT " " DRV_AUTHOR); 81MODULE_AUTHOR(DRV_COPYRIGHT " " DRV_AUTHOR);
82MODULE_LICENSE("GPL"); 82MODULE_LICENSE("GPL");
83 83
84static const struct iwl_op_mode_ops iwl_dvm_ops;
85
84void iwl_update_chain_flags(struct iwl_priv *priv) 86void iwl_update_chain_flags(struct iwl_priv *priv)
85{ 87{
86 struct iwl_rxon_context *ctx; 88 struct iwl_rxon_context *ctx;
@@ -2163,7 +2165,7 @@ static void iwl_set_hw_rfkill_state(struct iwl_op_mode *op_mode, bool state)
2163 wiphy_rfkill_set_hw_state(priv->hw->wiphy, state); 2165 wiphy_rfkill_set_hw_state(priv->hw->wiphy, state);
2164} 2166}
2165 2167
2166const struct iwl_op_mode_ops iwl_dvm_ops = { 2168static const struct iwl_op_mode_ops iwl_dvm_ops = {
2167 .start = iwl_op_mode_dvm_start, 2169 .start = iwl_op_mode_dvm_start,
2168 .stop = iwl_op_mode_dvm_stop, 2170 .stop = iwl_op_mode_dvm_stop,
2169 .rx = iwl_rx_dispatch, 2171 .rx = iwl_rx_dispatch,