Fix hardcoded ni65 interrupt name to use system device value
Subsystems (2)
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.
Signed-off-by Mark Repka <[email protected]>
--- drivers/net/ethernet/amd/ni65.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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);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
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
Signed-off-by Mark Repka <[email protected]>--- drivers/net/ethernet/amd/ni65.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/amd/ni65.c +0
-0
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