linux-hardened/drivers/net/fs_enet
Anton Vorontsov eedbc705f9 fs_enet: Revive fixed link support
Since commit aa73832c5a ("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>
2009-07-22 09:27:19 -07:00
..
fec.h
fs_enet-main.c fs_enet: Revive fixed link support 2009-07-22 09:27:19 -07:00
fs_enet.h fs_enet: Remove dead code 2009-04-28 02:05:21 -07:00
Kconfig [FS_ENET]: Fix module build. 2007-11-14 15:51:01 -08:00
mac-fcc.c fs-enet: remove code associated with !CONFIG_PPC_MERGE 2008-09-24 22:11:57 -04:00
mac-fec.c fs_enet: Remove dead code 2009-04-28 02:05:21 -07:00
mac-scc.c fs-enet: remove code associated with !CONFIG_PPC_MERGE 2008-09-24 22:11:57 -04:00
Makefile fs_enet: Remove !CONFIG_PPC_CPM_NEW_BINDING code 2008-07-16 17:57:49 -05:00
mii-bitbang.c net: Rework fs_enet driver to use of_mdio infrastructure 2009-04-27 02:53:51 -07:00
mii-fec.c net: Rework fs_enet driver to use of_mdio infrastructure 2009-04-27 02:53:51 -07:00