sh_eth: update OF PHY registeration
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 12 Mar 2014 17:47:40 +0000 (17:47 +0000)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:13:16 +0000 (11:13 +0100)
commit7499a66a85a7488e727b9daafa0d1da15f797c48
tree8671637615eda1fd4ec0ae9f099911dc2bf18319
parent41c362d8bf2e7ccce5afe5760e1f13c995d7429e
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