diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-05-06 23:49:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-08 13:13:29 -0700 |
commit | 058112c7efc9ef43bb511c137293dddbe6e42908 (patch) | |
tree | c3c00dafaeaa95f78a3296f2cbd58bba92dd6613 /drivers/of/of_private.h | |
parent | sierra_net: keep status interrupt URB active (diff) | |
download | linux-dev-058112c7efc9ef43bb511c137293dddbe6e42908.tar.xz linux-dev-058112c7efc9ef43bb511c137293dddbe6e42908.zip |
net: of_mdio: fix behavior on missing phy device
of_mdiobus_register creates a phy_device even if get_phy_device failed
to create it previously. This causes indefinite polling on non-existent
PHYs. This fix makes of_mdio_register rely on get_phy_device to
properly create the device or fail otherwise.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/of/of_private.h')
0 files changed, 0 insertions, 0 deletions