]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: of_mdio: use int type for address variable
authorDaniel Mack <zonque@gmail.com>
Mon, 2 Jun 2014 11:32:45 +0000 (13:32 +0200)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:35 +0000 (21:17 -0600)
commit9d231507c438abdc9ffc875e825df095cf3dacda
tree33407fdc9ba944628ceeb105e8e81962e31d68c0
parentafa541c3825a7d71d4ae8f50e5bd1bc10c7b321f
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>
drivers/of/of_mdio.c