OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e79cb3
)
net: of_mdio: use PHY_MAX_ADDR constant
author
Florian Fainelli
<f.fainelli@gmail.com>
Thu, 5 Dec 2013 22:52:11 +0000
(14:52 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 6 Dec 2013 19:57:20 +0000
(14:57 -0500)
Use the PHY_MAX_ADDR constant for checking if a MDIO bus address is
valid instead of using a plain "32".
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c
patch
|
blob
|
history
diff --git
a/drivers/of/of_mdio.c
b/drivers/of/of_mdio.c
index
82485d2
..
f93ebca
100644
(file)
--- 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)
}
addr = be32_to_cpup(paddr);
- if (addr >=
32
) {
+ if (addr >=
PHY_MAX_ADDR
) {
dev_err(&mdio->dev, "%s PHY address %i is too large\n",
child->full_name, addr);
continue;