Skip to contentSkip to conversation

Fix hardcoded ni65 interrupt name to use system device value

net-next Mark Repka 2 participants 2 messages Sep 21, 2013

Subsystems (2)
lore
Share & tools
lore

Mark Repka

author
#0 lore raw

The ni65 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.

---
 drivers/net/ethernet/amd/ni65.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/amd/ni65.c +1 -1
index 1cf33ad..00cb6db 100644
@@ -295,7 +295,7 @@ static int ni65_open(struct net_device *dev)
 {
 	struct priv *p = dev->ml_priv;
 	int irqval = request_irq(dev->irq, ni65_interrupt,0,
-                        cards[p->cardno].cardname,dev);
+                       dev->name,dev);
 	if (irqval) {
 		printk(KERN_ERR "%s: unable to get IRQ %d (irqval=%d).\n",
 		          dev->name,dev->irq, irqval);
Signature · 1 line
1.8.1.4
#1 lore raw

Hello.

Quoted 1 line · Mark Repka

The ni65 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.

Please wrap your changelog lines at 80 columns (preferably even less).

Quoted 10 lines
---
  drivers/net/ethernet/amd/ni65.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/amd/ni65.c +0 -0
index 1cf33ad..00cb6db 100644

drivers/net/ethernet/amd/ni65.c static int ni65_open(struct net_device *dev) · line 298

Quoted 5 lines
drivers/net/ethernet/amd/ni65.c +1 -1
@@ -295,7 +295,7 @@ static int ni65_open(struct net_device *dev)
  {
  	struct priv *p = dev->ml_priv;
  	int irqval = request_irq(dev->irq, ni65_interrupt,0,
-                        cards[p->cardno].cardname,dev);
+                       dev->name,dev);

Don't indent with all spaces, use tabs at the start of line. And start the
line under 'dev->irq' please.

WBR, Sergei