diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-03-22 11:51:44 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-18 10:29:59 -0400 |
commit | 2152268ff9119c16447f6bf6e61b02df796960fd (patch) | |
tree | 60c90431506a2dd20060fc8a1473ccc7839d65f2 /drivers/net/wireless/iwlwifi/iwl-led.c | |
parent | 68e8dfdadb424fd76ca81eeb399c3228adc5cea2 (diff) |
iwlwifi: op_mode holds its pointer to the config
Instead of using the shared area that we be killed.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-led.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-led.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wireless/iwlwifi/iwl-led.c index 18e6a36eff4f..d57063e4937e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-led.c +++ b/drivers/net/wireless/iwlwifi/iwl-led.c | |||
@@ -138,11 +138,11 @@ static int iwl_led_cmd(struct iwl_priv *priv, | |||
138 | } | 138 | } |
139 | 139 | ||
140 | IWL_DEBUG_LED(priv, "Led blink time compensation=%u\n", | 140 | IWL_DEBUG_LED(priv, "Led blink time compensation=%u\n", |
141 | cfg(priv)->base_params->led_compensation); | 141 | priv->cfg->base_params->led_compensation); |
142 | led_cmd.on = iwl_blink_compensation(priv, on, | 142 | led_cmd.on = iwl_blink_compensation(priv, on, |
143 | cfg(priv)->base_params->led_compensation); | 143 | priv->cfg->base_params->led_compensation); |
144 | led_cmd.off = iwl_blink_compensation(priv, off, | 144 | led_cmd.off = iwl_blink_compensation(priv, off, |
145 | cfg(priv)->base_params->led_compensation); | 145 | priv->cfg->base_params->led_compensation); |
146 | 146 | ||
147 | ret = iwl_send_led_cmd(priv, &led_cmd); | 147 | ret = iwl_send_led_cmd(priv, &led_cmd); |
148 | if (!ret) { | 148 | if (!ret) { |
@@ -183,7 +183,7 @@ void iwl_leds_init(struct iwl_priv *priv) | |||
183 | return; | 183 | return; |
184 | } | 184 | } |
185 | if (mode == IWL_LED_DEFAULT) | 185 | if (mode == IWL_LED_DEFAULT) |
186 | mode = cfg(priv)->led_mode; | 186 | mode = priv->cfg->led_mode; |
187 | 187 | ||
188 | priv->led.name = kasprintf(GFP_KERNEL, "%s-led", | 188 | priv->led.name = kasprintf(GFP_KERNEL, "%s-led", |
189 | wiphy_name(priv->hw->wiphy)); | 189 | wiphy_name(priv->hw->wiphy)); |