Skip to content

Commit

Permalink
ks8851: Fix request_irq/free_irq mismatch
Browse files Browse the repository at this point in the history
The dev_id parameter passed to free_irq needs to match the one passed
to the corresponding request_irq.

Signed-off-by: Matt Renzelmann <mjr@cs.wisc.edu>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Matt Renzelmann authored and David S. Miller committed Apr 21, 2012
1 parent 792df87 commit e8195b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/micrel/ks8851.c
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ static int __devinit ks8851_probe(struct spi_device *spi)


err_netdev:
free_irq(ndev->irq, ndev);
free_irq(ndev->irq, ks);

err_id:
err_irq:
Expand Down

0 comments on commit e8195b2

Please sign in to comment.