aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6352.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/dsa/mv88e6352.c')
-rw-r--r--drivers/net/dsa/mv88e6352.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/dsa/mv88e6352.c b/drivers/net/dsa/mv88e6352.c
index 7bc5998384c6..75cf9e1c5a44 100644
--- a/drivers/net/dsa/mv88e6352.c
+++ b/drivers/net/dsa/mv88e6352.c
@@ -385,9 +385,10 @@ static int mv88e6352_setup(struct dsa_switch *ds)
385 int ret; 385 int ret;
386 int i; 386 int i;
387 387
388 mutex_init(&ps->smi_mutex); 388 ret = mv88e6xxx_setup_common(ds);
389 mutex_init(&ps->stats_mutex); 389 if (ret < 0)
390 mutex_init(&ps->phy_mutex); 390 return ret;
391
391 mutex_init(&ps->eeprom_mutex); 392 mutex_init(&ps->eeprom_mutex);
392 393
393 ps->id = REG_READ(REG_PORT(0), 0x03) & 0xfff0; 394 ps->id = REG_READ(REG_PORT(0), 0x03) & 0xfff0;