diff options
-rw-r--r-- | drivers/of/of_mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c index 82485d2dac89..f93ebca0fcb7 100644 --- a/drivers/of/of_mdio.c +++ b/drivers/of/of_mdio.c | |||
@@ -107,7 +107,7 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) | |||
107 | } | 107 | } |
108 | 108 | ||
109 | addr = be32_to_cpup(paddr); | 109 | addr = be32_to_cpup(paddr); |
110 | if (addr >= 32) { | 110 | if (addr >= PHY_MAX_ADDR) { |
111 | dev_err(&mdio->dev, "%s PHY address %i is too large\n", | 111 | dev_err(&mdio->dev, "%s PHY address %i is too large\n", |
112 | child->full_name, addr); | 112 | child->full_name, addr); |
113 | continue; | 113 | continue; |