Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 019d0c99 authored by John Crispin's avatar John Crispin Committed by David S. Miller
Browse files

net-next: mediatek: remove superfluous free_irq() call



Commit 80673029 ("net-next: mediatek: add support for IRQ grouping")
adds handling for irq 1 and 2 to the uninit function but did not remove
irq 0 which is not used since irq grouping was introduced. Fix this by
removing the superfluous call to free_irq().

Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d9329bc2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1492,7 +1492,6 @@ static void mtk_uninit(struct net_device *dev)
	phy_disconnect(mac->phy_dev);
	mtk_mdio_cleanup(eth);
	mtk_irq_disable(eth, ~0);
	free_irq(eth->irq[0], dev);
	free_irq(eth->irq[1], dev);
	free_irq(eth->irq[2], dev);
}