diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 2a4d40e5b9f4..c93368083e1a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -77,15 +77,15 @@ EXPORT_SYMBOL(iwl_bcast_addr); | |||
77 | 77 | ||
78 | 78 | ||
79 | /* This function both allocates and initializes hw and priv. */ | 79 | /* This function both allocates and initializes hw and priv. */ |
80 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg, | 80 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg) |
81 | struct ieee80211_ops *hw_ops) | ||
82 | { | 81 | { |
83 | struct iwl_priv *priv; | 82 | struct iwl_priv *priv; |
84 | |||
85 | /* mac80211 allocates memory for this device instance, including | 83 | /* mac80211 allocates memory for this device instance, including |
86 | * space for this driver's private structure */ | 84 | * space for this driver's private structure */ |
87 | struct ieee80211_hw *hw = | 85 | struct ieee80211_hw *hw; |
88 | ieee80211_alloc_hw(sizeof(struct iwl_priv), hw_ops); | 86 | |
87 | hw = ieee80211_alloc_hw(sizeof(struct iwl_priv), | ||
88 | cfg->ops->ieee80211_ops); | ||
89 | if (hw == NULL) { | 89 | if (hw == NULL) { |
90 | pr_err("%s: Can not allocate network device\n", | 90 | pr_err("%s: Can not allocate network device\n", |
91 | cfg->name); | 91 | cfg->name); |