Skip to content

Commit

Permalink
lance: Fix hardcoded interrupt name lp->name to use system device value
Browse files Browse the repository at this point in the history
The lance interrupt handler was using the hard-coded name which would make it difficult to tell where the interrupt came from. Changed to use the device name that made the interrupt.

Signed-off-by: Nate Levesque <thenaterhood@gmail.com>
Reviewed-by: Matthew Whitehead <tedheadster@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Nate Levesque authored and David S. Miller committed Sep 27, 2013
1 parent 307fc4d commit f0e28d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/amd/lance.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ lance_open(struct net_device *dev)
int i;

if (dev->irq == 0 ||
request_irq(dev->irq, lance_interrupt, 0, lp->name, dev)) {
request_irq(dev->irq, lance_interrupt, 0, dev->name, dev)) {
return -EAGAIN;
}

Expand Down

0 comments on commit f0e28d4

Please sign in to comment.