diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-12-12 17:16:12 +0000 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-12-14 20:18:57 -0800 |
commit | f5058a27dac700952d5551bd7c5546f52b0468e4 (patch) | |
tree | 6b526c4b95917ab3e25947d52b790e50713212ce /net/smc | |
parent | de1799667b002331609e8ee6b924ccfd51968d99 (diff) | |
download | linux-f5058a27dac700952d5551bd7c5546f52b0468e4.tar.gz linux-f5058a27dac700952d5551bd7c5546f52b0468e4.tar.bz2 linux-f5058a27dac700952d5551bd7c5546f52b0468e4.zip |
net: phylink: propagate phy_attach_direct() return code
of_phy_attach() hides the return value of phy_attach_direct(), forcing
us to return a "generic" ENODEV error code that is indistinguishable
from the lack-of-phy-property case.
Switch to using of_phy_find_device() to find the PHY device, and then
propagating any phy_attach_direct() error back to the caller.
Link: https://lore.kernel.org/lkml/20191210113829.GT25745@shell.armlinux.org.uk
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'net/smc')
0 files changed, 0 insertions, 0 deletions