diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-rfkill.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rfkill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rfkill.c b/drivers/net/wireless/iwlwifi/iwl-rfkill.c index cece1c563939..98df755e21b1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rfkill.c +++ b/drivers/net/wireless/iwlwifi/iwl-rfkill.c | |||
@@ -82,7 +82,7 @@ int iwl_rfkill_init(struct iwl_priv *priv) | |||
82 | IWL_DEBUG_RF_KILL("Initializing RFKILL.\n"); | 82 | IWL_DEBUG_RF_KILL("Initializing RFKILL.\n"); |
83 | priv->rfkill = rfkill_allocate(device, RFKILL_TYPE_WLAN); | 83 | priv->rfkill = rfkill_allocate(device, RFKILL_TYPE_WLAN); |
84 | if (!priv->rfkill) { | 84 | if (!priv->rfkill) { |
85 | IWL_ERROR("Unable to allocate RFKILL device.\n"); | 85 | IWL_ERR(priv, "Unable to allocate RFKILL device.\n"); |
86 | ret = -ENOMEM; | 86 | ret = -ENOMEM; |
87 | goto error; | 87 | goto error; |
88 | } | 88 | } |
@@ -98,7 +98,7 @@ int iwl_rfkill_init(struct iwl_priv *priv) | |||
98 | 98 | ||
99 | ret = rfkill_register(priv->rfkill); | 99 | ret = rfkill_register(priv->rfkill); |
100 | if (ret) { | 100 | if (ret) { |
101 | IWL_ERROR("Unable to register RFKILL: %d\n", ret); | 101 | IWL_ERR(priv, "Unable to register RFKILL: %d\n", ret); |
102 | goto free_rfkill; | 102 | goto free_rfkill; |
103 | } | 103 | } |
104 | 104 | ||