net: ethernet: mediatek: use [get|set]_link_ksettings
authorSean Wang <sean.wang@mediatek.com>
Thu, 22 Sep 2016 08:42:03 +0000 (16:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 12:22:27 +0000 (08:22 -0400)
commit3e60b748fd2f50bbdb6a61fdd48222cd492c77e3
treea5e1c6c09fa57a69049ac3facf5a2d07bc5abb1d
parenta2b2a19f0fbc674478a6806ea9e4f6aff06763f8
net: ethernet: mediatek: use [get|set]_link_ksettings

1) use new api [get|set]_link_ksettings instead
of [get|set]_settings old ones.

2) dev->phydev is sure being ready before calling
these callbacks, so removing all the sanity check
if it is existing.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c