]> Pileus Git - ~andy/linux/commitdiff
lance: Fix hardcoded interrupt name lp->name to use system device value
authorNate Levesque <thenaterhood@gmail.com>
Sat, 21 Sep 2013 18:49:41 +0000 (18:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Sep 2013 21:38:32 +0000 (17:38 -0400)
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>
drivers/net/ethernet/amd/lance.c

index 5c728436b85e7df0cf9421fa6185e45c2b52bd3c..256f590f6bb1a6db167f4375b3ed2719d2ad5073 100644 (file)
@@ -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;
        }