aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2019-03-11 14:09:53 +0100
committerKalle Valo <kvalo@codeaurora.org>2019-03-19 17:35:37 +0200
commitf2a00a821aacfa77985e4dbe83ed064c48a21bd5 (patch)
treea2adf5aa1f245a960b9fc49ab13e9eeaea0aa573 /drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
parentmt76x02u: check chip version on probe (diff)
downloadlinux-dev-f2a00a821aacfa77985e4dbe83ed064c48a21bd5.tar.xz
linux-dev-f2a00a821aacfa77985e4dbe83ed064c48a21bd5.zip
mt76: mt7603: use the correct hweight8() function
__sw_hweight8() is only defined if CONFIG_GENERIC_HWEIGHT is enabled. The function that works on all architectures is hweight8(). Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to '')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7603/mcu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
index 4b0713f1fd5e..d06905ea8cc6 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
@@ -433,7 +433,7 @@ int mt7603_mcu_set_channel(struct mt7603_dev *dev)
{
struct cfg80211_chan_def *chandef = &dev->mt76.chandef;
struct ieee80211_hw *hw = mt76_hw(dev);
- int n_chains = __sw_hweight8(dev->mt76.antenna_mask);
+ int n_chains = hweight8(dev->mt76.antenna_mask);
struct {
u8 control_chan;
u8 center_chan;