diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-led.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-led.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wireless/iwlwifi/iwl-led.c index 8761438f1532..5c7741f07aa0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-led.c +++ b/drivers/net/wireless/iwlwifi/iwl-led.c | |||
@@ -71,7 +71,7 @@ static const struct ieee80211_tpt_blink iwl_blink[] = { | |||
71 | /* Set led register off */ | 71 | /* Set led register off */ |
72 | void iwlagn_led_enable(struct iwl_priv *priv) | 72 | void iwlagn_led_enable(struct iwl_priv *priv) |
73 | { | 73 | { |
74 | iwl_write32(bus(priv), CSR_LED_REG, CSR_LED_REG_TRUN_ON); | 74 | iwl_write32(trans(priv), CSR_LED_REG, CSR_LED_REG_TRUN_ON); |
75 | } | 75 | } |
76 | 76 | ||
77 | /* | 77 | /* |
@@ -107,9 +107,10 @@ static int iwl_send_led_cmd(struct iwl_priv *priv, struct iwl_led_cmd *led_cmd) | |||
107 | }; | 107 | }; |
108 | u32 reg; | 108 | u32 reg; |
109 | 109 | ||
110 | reg = iwl_read32(bus(priv), CSR_LED_REG); | 110 | reg = iwl_read32(trans(priv), CSR_LED_REG); |
111 | if (reg != (reg & CSR_LED_BSM_CTRL_MSK)) | 111 | if (reg != (reg & CSR_LED_BSM_CTRL_MSK)) |
112 | iwl_write32(bus(priv), CSR_LED_REG, reg & CSR_LED_BSM_CTRL_MSK); | 112 | iwl_write32(trans(priv), CSR_LED_REG, |
113 | reg & CSR_LED_BSM_CTRL_MSK); | ||
113 | 114 | ||
114 | return iwl_trans_send_cmd(trans(priv), &cmd); | 115 | return iwl_trans_send_cmd(trans(priv), &cmd); |
115 | } | 116 | } |
@@ -206,7 +207,7 @@ void iwl_leds_init(struct iwl_priv *priv) | |||
206 | break; | 207 | break; |
207 | } | 208 | } |
208 | 209 | ||
209 | ret = led_classdev_register(bus(priv)->dev, &priv->led); | 210 | ret = led_classdev_register(trans(priv)->dev, &priv->led); |
210 | if (ret) { | 211 | if (ret) { |
211 | kfree(priv->led.name); | 212 | kfree(priv->led.name); |
212 | return; | 213 | return; |