netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next] Fix hardcoded interrupt name lp->name to use system device value
@ 2013-09-21 18:49 Nate Levesque
  2013-09-23  2:25 ` Matthew Whitehead
  0 siblings, 1 reply; 3+ messages in thread
From: Nate Levesque @ 2013-09-21 18:49 UTC (permalink / raw)
  To: netdev; +Cc: Nate Levesque

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>
---
 drivers/net/ethernet/amd/lance.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/amd/lance.c b/drivers/net/ethernet/amd/lance.c
index 5c72843..256f590 100644
--- a/drivers/net/ethernet/amd/lance.c
+++ b/drivers/net/ethernet/amd/lance.c
@@ -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;
 	}
 
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-27 21:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-21 18:49 [net-next] Fix hardcoded interrupt name lp->name to use system device value Nate Levesque
2013-09-23  2:25 ` Matthew Whitehead
2013-09-27 21:40   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).