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 14:24:14 -0700 |
commit | 4cfbf09cf97f265c82f48ca2bd7ea704b6a21a90 (patch) | |
tree | 7ab24187543b7466dac94f70661dcda50753d74f /net/dsa/dsa_priv.h | |
parent | 47d0dcc35412feb354aace4c5dcc07c03cb4ccb0 (diff) | |
download | linux-4cfbf09cf97f265c82f48ca2bd7ea704b6a21a90.tar.bz2 |
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/dsa_priv.h')
-rw-r--r-- | net/dsa/dsa_priv.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index 2873d912b12e..945ded148c9c 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h @@ -148,8 +148,7 @@ int dsa_port_vlan_dump(struct dsa_port *dp, extern const struct dsa_device_ops notag_netdev_ops; void dsa_slave_mii_bus_init(struct dsa_switch *ds); void dsa_cpu_port_ethtool_init(struct ethtool_ops *ops); -int dsa_slave_create(struct dsa_switch *ds, struct device *parent, - int port, const char *name); +int dsa_slave_create(struct dsa_port *port, const char *name); void dsa_slave_destroy(struct net_device *slave_dev); int dsa_slave_suspend(struct net_device *slave_dev); int dsa_slave_resume(struct net_device *slave_dev); |