summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/lan9303-core.c
diff options
context:
space:
mode:
authorVivien Didelot2017-11-30 17:23:58 +0100
committerDavid S. Miller2017-12-03 03:18:56 +0100
commit3709aadc8375a1b0c42da5b12e38eddf8133dd4e (patch)
tree99012d5f5ec8279d23dee2c9475ed3e8a1853985 /drivers/net/dsa/lan9303-core.c
parentnet: dsa: remove trans argument from vlan ops (diff)
downloadkernel-qcow2-linux-3709aadc8375a1b0c42da5b12e38eddf8133dd4e.tar.gz
kernel-qcow2-linux-3709aadc8375a1b0c42da5b12e38eddf8133dd4e.tar.xz
kernel-qcow2-linux-3709aadc8375a1b0c42da5b12e38eddf8133dd4e.zip
net: dsa: remove trans argument from mdb ops
The DSA switch MDB ops pass the switchdev_trans structure down to the drivers, but no one is using them and they aren't supposed to anyway. Remove the trans argument from MDB prepare and add operations. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/lan9303-core.c')
-rw-r--r--drivers/net/dsa/lan9303-core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/lan9303-core.c
index b24566bb74d2..ea59dadefb33 100644
--- a/drivers/net/dsa/lan9303-core.c
+++ b/drivers/net/dsa/lan9303-core.c
@@ -1217,8 +1217,7 @@ static int lan9303_port_fdb_dump(struct dsa_switch *ds, int port,
}
static int lan9303_port_mdb_prepare(struct dsa_switch *ds, int port,
- const struct switchdev_obj_port_mdb *mdb,
- struct switchdev_trans *trans)
+ const struct switchdev_obj_port_mdb *mdb)
{
struct lan9303 *chip = ds->priv;
@@ -1235,8 +1234,7 @@ static int lan9303_port_mdb_prepare(struct dsa_switch *ds, int port,
}
static void lan9303_port_mdb_add(struct dsa_switch *ds, int port,
- const struct switchdev_obj_port_mdb *mdb,
- struct switchdev_trans *trans)
+ const struct switchdev_obj_port_mdb *mdb)
{
struct lan9303 *chip = ds->priv;