diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-10-13 21:18:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-15 04:30:06 +0300 |
commit | 841f4f24053acad69240c6ab7427a1d24bc29491 (patch) | |
tree | 15cf27ce252e47bef6d1ec6da67fceeeee4c48e9 /net/dsa/legacy.c | |
parent | 93004a934bc19ea52b687d74482fd1bdd25e7b87 (diff) | |
download | linux-841f4f24053acad69240c6ab7427a1d24bc29491.tar.xz |
net: dsa: remove .set_addr
Now that there is no user for the .set_addr function, remove it from
DSA. If a switch supports this feature (like mv88e6xxx), the
implementation can be done in the driver setup.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/legacy.c')
-rw-r--r-- | net/dsa/legacy.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/dsa/legacy.c b/net/dsa/legacy.c index 19ff6e0a21dc..b0fefbffe082 100644 --- a/net/dsa/legacy.c +++ b/net/dsa/legacy.c @@ -172,12 +172,6 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, if (ret) return ret; - if (ops->set_addr) { - ret = ops->set_addr(ds, master->dev_addr); - if (ret < 0) - return ret; - } - if (!ds->slave_mii_bus && ops->phy_read) { ds->slave_mii_bus = devm_mdiobus_alloc(ds->dev); if (!ds->slave_mii_bus) |