Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecf7b361 authored by Stas Sergeev's avatar Stas Sergeev Committed by David S. Miller
Browse files

mvneta: dont call mvneta_adjust_link() manually



mvneta_adjust_link() is a callback for of_phy_connect() and should
not be called directly. The result of calling it directly is as below:

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f60e5990
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -2658,16 +2658,11 @@ static int mvneta_stop(struct net_device *dev)
static int mvneta_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{
	struct mvneta_port *pp = netdev_priv(dev);
	int ret;

	if (!pp->phy_dev)
		return -ENOTSUPP;

	ret = phy_mii_ioctl(pp->phy_dev, ifr, cmd);
	if (!ret)
		mvneta_adjust_link(dev);

	return ret;
	return phy_mii_ioctl(pp->phy_dev, ifr, cmd);
}

/* Ethtool methods */