arm: ls102xa: Rewrite the logic of ft_fixup_enet_phy_connect_type()
authorBin Meng <bmeng.cn@gmail.com>
Tue, 12 Jan 2016 06:41:26 +0000 (22:41 -0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 28 Jan 2016 18:23:22 +0000 (12:23 -0600)
commitafe6462da9f68e872a9aeae1dc5389184819c1cf
treee0584e1b940ffa5fc6069671802db1840b9b51c0
parenta1c76c150831168c09810006ede95b164fa292df
arm: ls102xa: Rewrite the logic of ft_fixup_enet_phy_connect_type()

eth_get_dev_by_index() is an API which is not available in driver
model. Use eth_get_dev_by_name() instead, which can also simplifly
the code logic a little bit.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
arch/arm/cpu/armv7/ls102xa/fdt.c