net-next: mediatek: remove superfluous free_irq() call
Subsystems (4)
PATCH 1/1 net-next: mediatek: remove superfluous free_irq() call
Commit 8067302973a1 ("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().
--- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +0 -1
@@ -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); }
Signature · 1 line
1.7.10.4
Quoted 8 lines · CEST John Crispin
Commit
8067302973a1("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 tofree_irq().Reported-by Arnd Bergmann <[email protected]>Signed-off-by John Crispin <[email protected]>
Thanks for the quick update!
From: John Crispin <[email protected]>
Date: Mon, 4 Jul 2016 15:37:10 +0200
Quoted 7 lines
Commit
8067302973a1("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 tofree_irq().Reported-by Arnd Bergmann <[email protected]>Signed-off-by John Crispin <[email protected]>
Applied.