ucc_geth: Revive fixed link support
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 16 Jul 2009 21:31:47 +0000 (21:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2009 16:27:24 +0000 (09:27 -0700)
commit3104a6ff67e484e4dc84822b4ed0396e85bb9fb9
treef4576bc8b5ee355e1deeec3b2a9877ffa6278ffd
parent1db780f8c7d361fe1b7d29b9dc849b97955ae944
ucc_geth: Revive fixed link support

Since commit 0b9da337dca972e7a4144e298ec3adb8f244d4a4 ("Rework
ucc_geth driver to use of_mdio infrastructure") the fixed-link
support is broken.

This patch fixes the support by removing !ug_info->phy_node check,
and adds a call to of_phy_connect_fixed_link() if a phy is not attached
to the MAC.

Also, remove an old fixed-link code that we don't use any longer.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ucc_geth.c