summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2016-10-16 19:56:52 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-17 11:18:08 -0400
commitae0219cb441cf5f471feb90961b1e93a91ba6db6 (patch)
tree9eb9dfc0e1ae07510308e89096ec3e5b7a1ff244 /drivers/net/phy/phy.c
parent664fcf123a30edf16b47d2ce1f610d654ba917b2 (diff)
downloadblackbird-obmc-linux-ae0219cb441cf5f471feb90961b1e93a91ba6db6.tar.gz
blackbird-obmc-linux-ae0219cb441cf5f471feb90961b1e93a91ba6db6.zip
net: phy: Use phy name when requesting the interrupt
Using the fixed name "phy_interrupt" is not very informative in /proc/interrupts when there are a lot of phys, e.g. a device with an Ethernet switch. So when requesting the interrupt, use the name of the phy. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r--drivers/net/phy/phy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index bb673c63c85c..96bf03352bb8 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -736,8 +736,7 @@ int phy_start_interrupts(struct phy_device *phydev)
atomic_set(&phydev->irq_disable, 0);
if (request_threaded_irq(phydev->irq, NULL, phy_interrupt,
IRQF_ONESHOT | IRQF_SHARED,
- "phy_interrupt",
- phydev) < 0) {
+ phydev_name(phydev), phydev) < 0) {
pr_warn("%s: Can't get IRQ %d (PHY)\n",
phydev->mdio.bus->name, phydev->irq);
phydev->irq = PHY_POLL;
OpenPOWER on IntegriCloud