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: 1c1008c793
("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6ac3ce8295
commit
978ffac418
@ -2695,7 +2695,7 @@ static int bcmgenet_open(struct net_device *dev)
|
||||
return 0;
|
||||
|
||||
err_irq0:
|
||||
free_irq(priv->irq0, dev);
|
||||
free_irq(priv->irq0, priv);
|
||||
err_fini_dma:
|
||||
bcmgenet_fini_dma(priv);
|
||||
err_clk_disable:
|
||||
|
Loading…
Reference in New Issue
Block a user