diff options
Diffstat (limited to 'drivers/net/wireless/ath/ar9170/phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/phy.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ar9170/phy.c b/drivers/net/wireless/ath/ar9170/phy.c index 45a415ea809a..0dbfcf79ac96 100644 --- a/drivers/net/wireless/ath/ar9170/phy.c +++ b/drivers/net/wireless/ath/ar9170/phy.c | |||
@@ -670,8 +670,7 @@ static int ar9170_init_rf_banks_0_7(struct ar9170 *ar, bool band5ghz) | |||
670 | ar9170_regwrite_finish(); | 670 | ar9170_regwrite_finish(); |
671 | err = ar9170_regwrite_result(); | 671 | err = ar9170_regwrite_result(); |
672 | if (err) | 672 | if (err) |
673 | printk(KERN_ERR "%s: rf init failed\n", | 673 | wiphy_err(ar->hw->wiphy, "rf init failed\n"); |
674 | wiphy_name(ar->hw->wiphy)); | ||
675 | return err; | 674 | return err; |
676 | } | 675 | } |
677 | 676 | ||
@@ -1702,9 +1701,8 @@ int ar9170_set_channel(struct ar9170 *ar, struct ieee80211_channel *channel, | |||
1702 | 0x200 | ar->phy_heavy_clip); | 1701 | 0x200 | ar->phy_heavy_clip); |
1703 | if (err) { | 1702 | if (err) { |
1704 | if (ar9170_nag_limiter(ar)) | 1703 | if (ar9170_nag_limiter(ar)) |
1705 | printk(KERN_ERR "%s: failed to set " | 1704 | wiphy_err(ar->hw->wiphy, |
1706 | "heavy clip\n", | 1705 | "failed to set heavy clip\n"); |
1707 | wiphy_name(ar->hw->wiphy)); | ||
1708 | } | 1706 | } |
1709 | } | 1707 | } |
1710 | 1708 | ||