mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 18:44:44 +08:00
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>
This commit is contained in:
parent
36fc2d727e
commit
d72e7c21b5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user