projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'topic/misc' into for-linus
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
of
/
of_mdio.c
diff --git
a/drivers/of/of_mdio.c
b/drivers/of/of_mdio.c
index 18ecae4a4375d461957b04ee8171f1e5e1434b8c..b4748337223b43d28aa7fb11d7eb788ec29d6da4 100644
(file)
--- a/
drivers/of/of_mdio.c
+++ b/
drivers/of/of_mdio.c
@@
-69,7
+69,7
@@
int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
}
phy = get_phy_device(mdio, be32_to_cpup(addr));
- if (!phy) {
+ if (!phy
|| IS_ERR(phy)
) {
dev_err(&mdio->dev, "error probing PHY at address %i\n",
*addr);
continue;