net: phy: marvell10g: use genphy_c45_check_and_restart_aneg in mv3310_config_aneg
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 18 Feb 2019 20:27:46 +0000 (21:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 21:03:06 +0000 (13:03 -0800)
commit6b4cb6cb1385337d72a2bc0bd3b264f54a7bfaae
treea66b3c9954b0fef11b85387eec518cb9f410c1b3
parent1af9f16840e920c6193490ae58371fc5cc28bb01
net: phy: marvell10g: use genphy_c45_check_and_restart_aneg in mv3310_config_aneg

Use new function genphy_c45_check_and_restart_aneg() to reduce
boilerplate code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c