]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit702eca02b7c8574b42359512ebccfa777a71f66e
treea83149a742f8add2192abf515df7035a9b743e8e
parentd59b7d8059ddc4f9ac1f0904d28ea62a252e8de7
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