提交 978ffac4 编写于 作者: F Florian Fainelli 提交者: David S. Miller

net: bcmgenet: Use correct dev_id for free_irq

bcmgenet_open()'s error path call free_irq() with a dev_id argument
different from the one we used to call request_irq() with, this will
make us trip over the warning in kernel/irq/manage.c:__free_irq()

Fixes: 1c1008c7 ("net: bcmgenet: add main driver file")
Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6ac3ce82
...@@ -2695,7 +2695,7 @@ static int bcmgenet_open(struct net_device *dev) ...@@ -2695,7 +2695,7 @@ static int bcmgenet_open(struct net_device *dev)
return 0; return 0;
err_irq0: err_irq0:
free_irq(priv->irq0, dev); free_irq(priv->irq0, priv);
err_fini_dma: err_fini_dma:
bcmgenet_fini_dma(priv); bcmgenet_fini_dma(priv);
err_clk_disable: err_clk_disable:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册