Skip to content

Commit 9df9aec

Browse files
arinc9davem330
authored andcommitted
net: dsa: mt7530: do not pass port variable to mt7531_rgmii_setup()
The mt7531_rgmii_setup() function does not use the port variable, do not pass the variable to it. Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 318c194 commit 9df9aec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/dsa/mt7530.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2785,7 +2785,7 @@ mt7530_mac_config(struct dsa_switch *ds, int port, unsigned int mode,
27852785
mt7530_setup_port6(priv->ds, interface);
27862786
}
27872787

2788-
static void mt7531_rgmii_setup(struct mt7530_priv *priv, u32 port,
2788+
static void mt7531_rgmii_setup(struct mt7530_priv *priv,
27892789
phy_interface_t interface,
27902790
struct phy_device *phydev)
27912791
{
@@ -2836,7 +2836,7 @@ mt7531_mac_config(struct dsa_switch *ds, int port, unsigned int mode,
28362836
if (phy_interface_mode_is_rgmii(interface)) {
28372837
dp = dsa_to_port(ds, port);
28382838
phydev = dp->user->phydev;
2839-
mt7531_rgmii_setup(priv, port, interface, phydev);
2839+
mt7531_rgmii_setup(priv, interface, phydev);
28402840
}
28412841
}
28422842

0 commit comments

Comments
 (0)