summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-07-16 21:31:36 +0000
committerDavid S. Miller <davem@davemloft.net>2009-07-22 09:27:19 -0700
commiteedbc705f9a094560b8d08c58b6787a5420a76a1 (patch)
tree7de68b7181306455819c69ff0a831622a4322e1f /lib
parent24c30dbbcdda9aeccb23b4eecb6bb8e538742ea4 (diff)
downloadop-kernel-dev-eedbc705f9a094560b8d08c58b6787a5420a76a1.zip
op-kernel-dev-eedbc705f9a094560b8d08c58b6787a5420a76a1.tar.gz
fs_enet: Revive fixed link support
Since commit aa73832c5a80d6c52c69b18af858d88fa595dd3c ("Rework fs_enet driver to use of_mdio infrastructure") the fixed-link support is broken in the fs_enet driver. This patch fixes the support by removing a check for phy_node, and adding a call to of_phy_connect_fixed_link(). Also set netdev parent device via SET_NETDEV_DEV() call, this is needed so that OF MDIO core could find a node pointer for a device. Plus, fix "if (IS_ERR(phydev))" check, in case of errors, of_phy_connect() returns NULL, not ERR_PTR as phy_connect(). 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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud