sh_eth: update OF PHY registeration
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 12 Mar 2014 17:47:40 +0000 (17:47 +0000)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:27 +0000 (09:21 +0900)
commit1e65950f5276e0407c95c0a9073a3c8d66d3cb76
tree607fa07f1ab6da6c1a08469bb91fd1698a50d5f7
parent15c05ff22e9281f068b7eac6ee595ae517ff1553
sh_eth: update OF PHY registeration

If the sh_eth device is registered using OF, then the driver
should call of_mdiobus_register() to register the PHYs described
in the devicetree and then use of_phy_connect() to connect the
PHYs to the device.

This ensures that any PHYs registered in the device tree are
appropriately connected to the parent devices nodes so that
the PHY drivers can access their OF properties.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 702eca02b7c8574b42359512ebccfa777a71f66e)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/net/ethernet/renesas/sh_eth.c