]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: update OF PHY registeration
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 12 Mar 2014 17:47:40 +0000 (17:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Mar 2014 19:47:37 +0000 (15:47 -0400)
commitdf6fbca09f639d47a61272d15a34ee03ad0de937
treea83149a742f8add2192abf515df7035a9b743e8e
parentf98f74069ba6d915212c27a610498c3c7737e48e
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>
drivers/net/ethernet/renesas/sh_eth.c