]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: octeon: use phy_ethtool_{get|set}_link_ksettings
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 30 Jul 2016 14:14:44 +0000 (16:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 22:42:20 +0000 (15:42 -0700)
commita6a7516c1c84da149fc071bd60146c2aa4e8a646
tree074c577b2c60719cdde22abae1e3ca98920fbfb8
parentfa2601d693296d3d2d5671b53a9ff517e36ab8a1
net: ethernet: octeon: use phy_ethtool_{get|set}_link_ksettings

There are two generics functions phy_ethtool_{get|set}_link_ksettings,
so we can use them instead of defining the same code in the driver.

There was a check on CAP_NET_ADMIN in cvm_oct_set_settings, but this
check is already done in dev_ethtool, so no need to repeat it before
calling the generic function.

Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/octeon/ethernet-mdio.c