mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +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
|
@ -194,7 +194,7 @@ static int dsa_switch_setup_one(struct dsa_switch *ds,
|
|||
if (!(ds->enabled_port_mask & (1 << i)))
|
||||
continue;
|
||||
|
||||
ret = dsa_slave_create(ds, ds->dev, i, cd->port_names[i]);
|
||||
ret = dsa_slave_create(&ds->ports[i], cd->port_names[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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue