diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2018-03-28 01:20:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-29 18:06:10 +0200 |
commit | d72e7c21b54bd7a6caa08a8eb62257d4e4196ab3 (patch) | |
tree | acfb397205986f766547168518fe6449e64c3cf2 | |
parent | Merge tag 'rxrpc-next-20180327' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
download | linux-d72e7c21b54bd7a6caa08a8eb62257d4e4196ab3.tar.xz linux-d72e7c21b54bd7a6caa08a8eb62257d4e4196ab3.zip |
net: bgmac: Use interface name to request interrupt
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>
-rw-r--r-- | drivers/net/ethernet/broadcom/bgmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.c b/drivers/net/ethernet/broadcom/bgmac.c index 8eef9fb6b1fe..46d7b8068425 100644 --- a/drivers/net/ethernet/broadcom/bgmac.c +++ b/drivers/net/ethernet/broadcom/bgmac.c @@ -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); |