net: dsa: qca8k: remove extra mutex_init in qca8k_setup
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>
This commit is contained in:
committed by
David S. Miller
parent
90ae68bfc2
commit
994c28b6f9
@@ -1086,8 +1086,6 @@ qca8k_setup(struct dsa_switch *ds)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
mutex_init(&priv->reg_mutex);
|
|
||||||
|
|
||||||
/* Start by setting up the register mapping */
|
/* Start by setting up the register mapping */
|
||||||
priv->regmap = devm_regmap_init(ds->dev, NULL, priv,
|
priv->regmap = devm_regmap_init(ds->dev, NULL, priv,
|
||||||
&qca8k_regmap_config);
|
&qca8k_regmap_config);
|
||||||
|
|||||||
Reference in New Issue
Block a user