aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6123_61_65.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/dsa/mv88e6123_61_65.c')
-rw-r--r--drivers/net/dsa/mv88e6123_61_65.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/dsa/mv88e6123_61_65.c b/drivers/net/dsa/mv88e6123_61_65.c
index e9c736e1cef3..6ebe57044afc 100644
--- a/drivers/net/dsa/mv88e6123_61_65.c
+++ b/drivers/net/dsa/mv88e6123_61_65.c
@@ -293,13 +293,12 @@ static int mv88e6123_61_65_setup_port(struct dsa_switch *ds, int p)
293 293
294static int mv88e6123_61_65_setup(struct dsa_switch *ds) 294static int mv88e6123_61_65_setup(struct dsa_switch *ds)
295{ 295{
296 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
297 int i; 296 int i;
298 int ret; 297 int ret;
299 298
300 mutex_init(&ps->smi_mutex); 299 ret = mv88e6xxx_setup_common(ds);
301 mutex_init(&ps->stats_mutex); 300 if (ret < 0)
302 mutex_init(&ps->phy_mutex); 301 return ret;
303 302
304 ret = mv88e6123_61_65_switch_reset(ds); 303 ret = mv88e6123_61_65_switch_reset(ds);
305 if (ret < 0) 304 if (ret < 0)