summaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa2.c
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-08-05 16:20:19 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-07 14:24:14 -0700
commit4cfbf09cf97f265c82f48ca2bd7ea704b6a21a90 (patch)
tree7ab24187543b7466dac94f70661dcda50753d74f /net/dsa/dsa2.c
parent47d0dcc35412feb354aace4c5dcc07c03cb4ccb0 (diff)
downloadblackbird-op-linux-4cfbf09cf97f265c82f48ca2bd7ea704b6a21a90.tar.gz
blackbird-op-linux-4cfbf09cf97f265c82f48ca2bd7ea704b6a21a90.zip
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/dsa2.c')
-rw-r--r--net/dsa/dsa2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c
index 2a0120493cf1..cceaa4dd9f53 100644
--- a/net/dsa/dsa2.c
+++ b/net/dsa/dsa2.c
@@ -275,7 +275,7 @@ static int dsa_user_port_apply(struct dsa_port *port)
if (!name)
name = "eth%d";
- err = dsa_slave_create(ds, ds->dev, port->index, name);
+ err = dsa_slave_create(port, name);
if (err) {
dev_warn(ds->dev, "Failed to create slave %d: %d\n",
port->index, err);
OpenPOWER on IntegriCloud