aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mt7530.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2019-02-24 20:44:43 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-24 22:30:34 -0800
commit75104db0cb353ec0b74644d960640ac0f84ab839 (patch)
treed56f151d309a6e3d04e8d29b8503f09b9adcce24 /drivers/net/dsa/mt7530.c
parentnet: phy: fix reading fixed phy status (diff)
downloadlinux-dev-75104db0cb353ec0b74644d960640ac0f84ab839.tar.xz
linux-dev-75104db0cb353ec0b74644d960640ac0f84ab839.zip
dsa: Remove phydev parameter from disable_port call
No current DSA driver makes use of the phydev parameter passed to the disable_port call. Remove it. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mt7530.c')
-rw-r--r--drivers/net/dsa/mt7530.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index c2b61500f958..0390c5e8271a 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -729,8 +729,7 @@ mt7530_port_enable(struct dsa_switch *ds, int port,
}
static void
-mt7530_port_disable(struct dsa_switch *ds, int port,
- struct phy_device *phy)
+mt7530_port_disable(struct dsa_switch *ds, int port)
{
struct mt7530_priv *priv = ds->priv;
@@ -1301,7 +1300,7 @@ mt7530_setup(struct dsa_switch *ds)
if (dsa_is_cpu_port(ds, i))
mt7530_cpu_port_enable(priv, i);
else
- mt7530_port_disable(ds, i, NULL);
+ mt7530_port_disable(ds, i);
}
/* Flush the FDB table */