net: bgmac: Use interface name to request interrupt
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 27 Mar 2018 23:20:01 +0000 (16:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Mar 2018 16:06:10 +0000 (12:06 -0400)
When the system contains several BGMAC adapters, it is nice to be able
to tell which one is which by looking at /proc/interrupts. Use the
network device name as a name to request_irq() with.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c

index 8eef9fb6b1fe20793cfb50f5588f704caa1a170f..46d7b80684257ae4c1867e9bb429afe371bec072 100644 (file)
@@ -1190,7 +1190,7 @@ static int bgmac_open(struct net_device *net_dev)
        bgmac_chip_init(bgmac);
 
        err = request_irq(bgmac->irq, bgmac_interrupt, IRQF_SHARED,
-                         KBUILD_MODNAME, net_dev);
+                         net_dev->name, net_dev);
        if (err < 0) {
                dev_err(bgmac->dev, "IRQ request error: %d!\n", err);
                bgmac_dma_cleanup(bgmac);