drivers: net: cpsw: use of_phy_connect() in fixed-link case
authorDavid Rivshin <drivshin@allworx.com>
Thu, 28 Apr 2016 01:45:45 +0000 (21:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 21:27:30 +0000 (17:27 -0400)
commit06cd6d6eda4bedbb826ed36e4c89734ea364ec4b
tree0c49b6362be9e3f3a528af84f83389c93782f12d
parenta5d2cb3b27441fe7432852d4198eadda1d9d19be
drivers: net: cpsw: use of_phy_connect() in fixed-link case

If a fixed-link DT subnode is used, the phy_device was looked up so
that a PHY ID string could be constructed and passed to phy_connect().
This is not necessary, as the device_node can be passed directly to
of_phy_connect() instead. This reuses the same codepath as if the
phy-handle DT property was used.

Signed-off-by: David Rivshin <drivshin@allworx.com>
Tested-by: Nicolas Chauvet <kwizart@gmail.com>
Tested-by: Andrew Goodbody <andrew.goodbody@cambrionix.com>
Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c