diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-09-03 20:22:16 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-07 06:49:33 (GMT) |
commit | bd1a05ee98b06c9a20138c45f96ccfddf3163f93 (patch) | |
tree | 829f09ddf686fbb936a717e3d2ba847a555fa5e8 /drivers/net | |
parent | f88f69dd17f150e2abcc7e2d95f895f2546fa381 (diff) | |
download | linux-bd1a05ee98b06c9a20138c45f96ccfddf3163f93.tar.xz |
fixed_phy: pass 'irq' to fixed_phy_add()
I've noticed that fixed_phy_register() ignores its 'irq' parameter instead of
passing it to fixed_phy_add(). Luckily, fixed_phy_register() seems to always
be called with PHY_POLL for 'irq'... :-)
Fixes: a75951217472 ("net: phy: extend fixed driver with fixed_phy_register()")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/fixed_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/fixed_phy.c b/drivers/net/phy/fixed_phy.c index 12c7eb2..fb1299c 100644 --- a/drivers/net/phy/fixed_phy.c +++ b/drivers/net/phy/fixed_phy.c @@ -325,7 +325,7 @@ struct phy_device *fixed_phy_register(unsigned int irq, phy_addr = phy_fixed_addr++; spin_unlock(&phy_fixed_addr_lock); - ret = fixed_phy_add(PHY_POLL, phy_addr, status, link_gpio); + ret = fixed_phy_add(irq, phy_addr, status, link_gpio); if (ret < 0) return ERR_PTR(ret); |