Commit 58d0f361 authored by Emmanuel Grumbach's avatar Emmanuel Grumbach Committed by John W. Linville

iwlwifi: remove iwlcore_low_level_notify

This patch removes the iwlcore_low_level_notify. The
notification chain is not required in this level.
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent be1f3ab6
...@@ -965,37 +965,6 @@ void iwl_uninit_drv(struct iwl_priv *priv) ...@@ -965,37 +965,6 @@ void iwl_uninit_drv(struct iwl_priv *priv)
} }
EXPORT_SYMBOL(iwl_uninit_drv); EXPORT_SYMBOL(iwl_uninit_drv);
/* Low level driver call this function to update iwlcore with
* driver status.
*/
int iwlcore_low_level_notify(struct iwl_priv *priv,
enum iwlcore_card_notify notify)
{
int ret;
switch (notify) {
case IWLCORE_INIT_EVT:
ret = iwl_rfkill_init(priv);
if (ret)
IWL_ERROR("Unable to initialize RFKILL system. "
"Ignoring error: %d\n", ret);
iwl_power_initialize(priv);
break;
case IWLCORE_START_EVT:
iwl_power_update_mode(priv, 1);
break;
case IWLCORE_STOP_EVT:
break;
case IWLCORE_REMOVE_EVT:
iwl_rfkill_unregister(priv);
break;
}
return 0;
}
EXPORT_SYMBOL(iwlcore_low_level_notify);
int iwl_send_statistics_request(struct iwl_priv *priv, u8 flags) int iwl_send_statistics_request(struct iwl_priv *priv, u8 flags)
{ {
u32 stat_flags = 0; u32 stat_flags = 0;
......
...@@ -359,15 +359,6 @@ static inline int iwl_is_ready_rf(struct iwl_priv *priv) ...@@ -359,15 +359,6 @@ static inline int iwl_is_ready_rf(struct iwl_priv *priv)
return iwl_is_ready(priv); return iwl_is_ready(priv);
} }
enum iwlcore_card_notify {
IWLCORE_INIT_EVT = 0,
IWLCORE_START_EVT = 1,
IWLCORE_STOP_EVT = 2,
IWLCORE_REMOVE_EVT = 3,
};
int iwlcore_low_level_notify(struct iwl_priv *priv,
enum iwlcore_card_notify notify);
extern int iwl_send_statistics_request(struct iwl_priv *priv, u8 flags); extern int iwl_send_statistics_request(struct iwl_priv *priv, u8 flags);
extern int iwl_verify_ucode(struct iwl_priv *priv); extern int iwl_verify_ucode(struct iwl_priv *priv);
extern void iwl_rf_kill_ct_config(struct iwl_priv *priv); extern void iwl_rf_kill_ct_config(struct iwl_priv *priv);
......
...@@ -2271,7 +2271,7 @@ static void iwl_alive_start(struct iwl_priv *priv) ...@@ -2271,7 +2271,7 @@ static void iwl_alive_start(struct iwl_priv *priv)
if (priv->error_recovering) if (priv->error_recovering)
iwl4965_error_recovery(priv); iwl4965_error_recovery(priv);
iwlcore_low_level_notify(priv, IWLCORE_START_EVT); iwl_power_update_mode(priv, 1);
ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC); ieee80211_notify_mac(priv->hw, IEEE80211_NOTIFY_RE_ASSOC);
if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status)) if (test_and_clear_bit(STATUS_MODE_PENDING, &priv->status))
...@@ -2297,8 +2297,6 @@ static void __iwl4965_down(struct iwl_priv *priv) ...@@ -2297,8 +2297,6 @@ static void __iwl4965_down(struct iwl_priv *priv)
iwl_leds_unregister(priv); iwl_leds_unregister(priv);
iwlcore_low_level_notify(priv, IWLCORE_STOP_EVT);
iwlcore_clear_stations_table(priv); iwlcore_clear_stations_table(priv);
/* Unblock any waiting calls */ /* Unblock any waiting calls */
...@@ -4460,8 +4458,11 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e ...@@ -4460,8 +4458,11 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
if (err) if (err)
IWL_ERROR("failed to create debugfs files\n"); IWL_ERROR("failed to create debugfs files\n");
/* notify iwlcore to init */ err = iwl_rfkill_init(priv);
iwlcore_low_level_notify(priv, IWLCORE_INIT_EVT); if (err)
IWL_ERROR("Unable to initialize RFKILL system. "
"Ignoring error: %d\n", err);
iwl_power_initialize(priv);
return 0; return 0;
out_remove_sysfs: out_remove_sysfs:
...@@ -4524,8 +4525,7 @@ static void __devexit iwl4965_pci_remove(struct pci_dev *pdev) ...@@ -4524,8 +4525,7 @@ static void __devexit iwl4965_pci_remove(struct pci_dev *pdev)
} }
} }
iwlcore_low_level_notify(priv, IWLCORE_REMOVE_EVT); iwl_rfkill_unregister(priv);
iwl4965_dealloc_ucode_pci(priv); iwl4965_dealloc_ucode_pci(priv);
if (priv->rxq.bd) if (priv->rxq.bd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment