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/legacy.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/legacy.c')
-rw-r--r-- | net/dsa/legacy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/legacy.c b/net/dsa/legacy.c index afe6e1539bd0..0511fe2feff7 100644 --- a/net/dsa/legacy.c +++ b/net/dsa/legacy.c @@ -197,7 +197,7 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, if (dsa_is_user_port(ds, i)) continue; - ret = dsa_slave_create(&ds->ports[i], cd->port_names[i]); + ret = dsa_slave_create(&ds->ports[i]); if (ret < 0) netdev_err(master, "[%d]: can't create dsa slave device for port %d(%s): %d\n", index, i, cd->port_names[i], ret); |