diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-08-05 16:20:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 17:24:14 -0400 |
commit | 4cfbf09cf97f265c82f48ca2bd7ea704b6a21a90 (patch) | |
tree | 7ab24187543b7466dac94f70661dcda50753d74f /net/dsa/legacy.c | |
parent | 47d0dcc35412feb354aace4c5dcc07c03cb4ccb0 (diff) |
net: dsa: remove useless args of dsa_slave_create
dsa_slave_create currently takes 4 arguments while it only needs the
related dsa_port and its name. Remove all other arguments.
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 903e8d70c792..612acf16d573 100644 --- a/net/dsa/legacy.c +++ b/net/dsa/legacy.c | |||
@@ -194,7 +194,7 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, | |||
194 | if (!(ds->enabled_port_mask & (1 << i))) | 194 | if (!(ds->enabled_port_mask & (1 << i))) |
195 | continue; | 195 | continue; |
196 | 196 | ||
197 | ret = dsa_slave_create(ds, ds->dev, i, cd->port_names[i]); | 197 | ret = dsa_slave_create(&ds->ports[i], cd->port_names[i]); |
198 | if (ret < 0) | 198 | if (ret < 0) |
199 | netdev_err(master, "[%d]: can't create dsa slave device for port %d(%s): %d\n", | 199 | netdev_err(master, "[%d]: can't create dsa slave device for port %d(%s): %d\n", |
200 | index, i, cd->port_names[i], ret); | 200 | index, i, cd->port_names[i], ret); |