提交 193da90e 编写于 作者: V Vivien Didelot 提交者: David S. Miller

net: dsa: qca8k: empty qca8k_get_eee

phy_ethtool_get_eee is already called by the DSA layer, thus remove the
duplicated call in the qca8k driver.
Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a2444ab8
......@@ -695,16 +695,8 @@ static int
qca8k_get_eee(struct dsa_switch *ds, int port,
struct ethtool_eee *e)
{
struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv;
struct ethtool_eee *p = &priv->port_sts[port].eee;
struct net_device *netdev = ds->ports[port].netdev;
int ret;
ret = phy_ethtool_get_eee(netdev->phydev, p);
e->eee_active = p->eee_active;
e->eee_enabled = p->eee_enabled;
return ret;
/* Nothing to do on the port's MAC */
return 0;
}
static void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册