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>
This commit is contained in:

committed by
David S. Miller

parent
1838fa89a2
commit
951259aa60
@@ -1142,11 +1142,12 @@ static void dsa_slave_notify(struct net_device *dev, unsigned long val)
|
||||
call_dsa_notifiers(val, dev, &rinfo.info);
|
||||
}
|
||||
|
||||
int dsa_slave_create(struct dsa_port *port, const char *name)
|
||||
int dsa_slave_create(struct dsa_port *port)
|
||||
{
|
||||
struct dsa_port *cpu_dp = port->cpu_dp;
|
||||
struct net_device *master = cpu_dp->master;
|
||||
struct dsa_switch *ds = port->ds;
|
||||
const char *name = port->name;
|
||||
struct net_device *slave_dev;
|
||||
struct dsa_slave_priv *p;
|
||||
int ret;
|
||||
|
Reference in New Issue
Block a user