diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-10-27 21:55:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-01 03:47:36 +0100 |
commit | 951259aa60180e2897d28b538bf68a3a213da471 (patch) | |
tree | aef0674ef932c1e00d293f695a998bf7604233db /net/dsa/slave.c | |
parent | net: dsa: get port name at parse time (diff) | |
download | linux-951259aa60180e2897d28b538bf68a3a213da471.tar.xz linux-951259aa60180e2897d28b538bf68a3a213da471.zip |
net: dsa: remove name arg from slave create
Now that slave dsa_port always have their name set, there is no need to
pass it to dsa_slave_create() anymore. Remove this argument.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 808e205227c3..48b954a76b0d 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -1142,11 +1142,12 @@ static void dsa_slave_notify(struct net_device *dev, unsigned long val) call_dsa_notifiers(val, dev, &rinfo.info); } -int dsa_slave_create(struct dsa_port *port, const char *name) +int dsa_slave_create(struct dsa_port *port) { struct dsa_port *cpu_dp = port->cpu_dp; struct net_device *master = cpu_dp->master; struct dsa_switch *ds = port->ds; + const char *name = port->name; struct net_device *slave_dev; struct dsa_slave_priv *p; int ret; |