summaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r--net/dsa/dsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index b220609cfe6f..91f96e1bd2ec 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -868,7 +868,7 @@ static void dsa_remove_dst(struct dsa_switch_tree *dst)
868 dsa_switch_destroy(ds); 868 dsa_switch_destroy(ds);
869 } 869 }
870 870
871 dsa_cpu_port_ethtool_restore(dst->ds[0]); 871 dsa_cpu_port_ethtool_restore(dst->cpu_switch);
872 872
873 dev_put(dst->master_netdev); 873 dev_put(dst->master_netdev);
874} 874}