mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-11 09:02:35 +00:00
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>
This commit is contained in:
parent
47d0dcc354
commit
4cfbf09cf9
4 changed files with 10 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue