summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/octeon
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2020-01-21 22:05:14 +0100
committerDavid S. Miller <davem@davemloft.net>2020-01-22 21:16:32 +0100
commitc5d19a6ecfce72d0352191d75f03eea4748a8c45 (patch)
tree6d0dbc811749ba5fda96050a4d0f0e92888d1909 /drivers/net/ethernet/cavium/octeon
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse... (diff)
downloadlinux-c5d19a6ecfce72d0352191d75f03eea4748a8c45.tar.xz
linux-c5d19a6ecfce72d0352191d75f03eea4748a8c45.zip
net: convert additional drivers to use phy_do_ioctl
The first batch of driver conversions missed a few cases where we can use phy_do_ioctl too. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/octeon')
-rw-r--r--drivers/net/ethernet/cavium/octeon/octeon_mgmt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
index cdd7e5da4a74..e9575887a4f8 100644
--- a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
+++ b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
@@ -790,9 +790,7 @@ static int octeon_mgmt_ioctl(struct net_device *netdev,
case SIOCSHWTSTAMP:
return octeon_mgmt_ioctl_hwtstamp(netdev, rq, cmd);
default:
- if (netdev->phydev)
- return phy_mii_ioctl(netdev->phydev, rq, cmd);
- return -EINVAL;
+ return phy_do_ioctl(netdev, rq, cmd);
}
}