aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-11-10 18:22:52 -0500
committerDavid S. Miller <davem@davemloft.net>2017-11-12 20:34:54 -0500
commit5ed4e3eb021762fee584ce65620bc822131c7aa0 (patch)
tree5f3ed5e21d4dfaacb13beec852583aa4ab64f268 /drivers/net/dsa/dsa_loop.c
parentee9d3429c0e47a57e3e73b638785cafa33773639 (diff)
net: dsa: Pass a port to get_tag_protocol()
A number of drivers want to check whether the configured CPU port is a possible configuration for enabling tagging, pass down the CPU port number so they verify that. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
-rw-r--r--drivers/net/dsa/dsa_loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/dsa/dsa_loop.c b/drivers/net/dsa/dsa_loop.c
index 3a3f4f7ba364..bb71d3d6f65b 100644
--- a/drivers/net/dsa/dsa_loop.c
+++ b/drivers/net/dsa/dsa_loop.c
@@ -64,7 +64,8 @@ struct dsa_loop_priv {
64 64
65static struct phy_device *phydevs[PHY_MAX_ADDR]; 65static struct phy_device *phydevs[PHY_MAX_ADDR];
66 66
67static enum dsa_tag_protocol dsa_loop_get_protocol(struct dsa_switch *ds) 67static enum dsa_tag_protocol dsa_loop_get_protocol(struct dsa_switch *ds,
68 int port)
68{ 69{
69 dev_dbg(ds->dev, "%s\n", __func__); 70 dev_dbg(ds->dev, "%s\n", __func__);
70 71