summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/mt7921/init.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2021-04-21 15:21:31 +0200
committerFelix Fietkau <nbd@nbd.name>2021-04-21 20:55:56 +0200
commit51252cc56ec9aaac71445e849c75b40b17277d7e (patch)
treec439c563b13cd42886f87d813b02b706215e2a4e /drivers/net/wireless/mediatek/mt76/mt7921/init.c
parent2bf301bc81df81907ceabbfd7bf57743696899bb (diff)
mt76: move mt76_token_init in mt76_alloc_device
In order to remove duplicated code, move mt76_token_init in mt76_alloc_device routine Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7921/init.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7921/init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/init.c b/drivers/net/wireless/mediatek/mt76/mt7921/init.c
index c32fea6378af..fe28bf4050c4 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c
@@ -170,7 +170,6 @@ static int mt7921_init_hardware(struct mt7921_dev *dev)
{
int ret, idx;
- mt76_token_init(&dev->mt76);
ret = mt7921_dma_init(dev);
if (ret)
return ret;