net: dsa: qca8k: remove extra mutex_init in qca8k_setup
authorAnsuel Smith <ansuelsmth@gmail.com>
Mon, 22 Nov 2021 15:23:42 +0000 (16:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2021 15:35:16 +0000 (15:35 +0000)
Mutex is already init in sw_probe. Remove the extra init in qca8k_setup.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c

index 0eceb9c..ae02043 100644 (file)
@@ -1086,8 +1086,6 @@ qca8k_setup(struct dsa_switch *ds)
        if (ret)
                return ret;
 
-       mutex_init(&priv->reg_mutex);
-
        /* Start by setting up the register mapping */
        priv->regmap = devm_regmap_init(ds->dev, NULL, priv,
                                        &qca8k_regmap_config);