summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-06-02 13:32:45 +0200
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 08:58:55 -0500
commit525f71637e234e62c54e97571c4da55cb0e2bc6f (patch)
treefb9502a76c0ca6938e73c9598d2f56896f699f6e /drivers/of
parent99f4db126b199caeec6625b43082194b9e0b46c7 (diff)
net: of_mdio: use int type for address variable
Use int rather than u32 to fix the following warning: drivers/of/of_mdio.c:147 of_mdiobus_register() warn: unsigned 'addr' is never less than zero. Signed-off-by: Daniel Mack <zonque@gmail.com> Fixes: 8f8382888cba ("net: of_mdio: factor out code to parse a phy's 'reg' property") Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/of_mdio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c
index 2fe922bfade8..8478c97f9201 100644
--- a/drivers/of/of_mdio.c
+++ b/drivers/of/of_mdio.c
@@ -121,9 +121,8 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
{
struct device_node *child;
const __be32 *paddr;
- u32 addr;
bool scanphys = false;
- int rc, i;
+ int addr, rc, i;
/* Mask out all PHYs from auto probing. Instead the PHYs listed in
* the device tree are populated after the bus has been registered */