aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.c')
-rw-r--r--drivers/net/dsa/mv88e6xxx.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c
index c18ffc98aacc..6496beb74510 100644
--- a/drivers/net/dsa/mv88e6xxx.c
+++ b/drivers/net/dsa/mv88e6xxx.c
@@ -700,6 +700,17 @@ int mv88e6xxx_set_eee(struct dsa_switch *ds, int port,
700 return 0; 700 return 0;
701} 701}
702 702
703int mv88e6xxx_setup_common(struct dsa_switch *ds)
704{
705 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
706
707 mutex_init(&ps->smi_mutex);
708 mutex_init(&ps->stats_mutex);
709 mutex_init(&ps->phy_mutex);
710
711 return 0;
712}
713
703static int __init mv88e6xxx_init(void) 714static int __init mv88e6xxx_init(void)
704{ 715{
705#if IS_ENABLED(CONFIG_NET_DSA_MV88E6131) 716#if IS_ENABLED(CONFIG_NET_DSA_MV88E6131)