Commit 994c28b6 authored by Ansuel Smith's avatar Ansuel Smith Committed by David S. Miller
Browse files

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: default avatarAnsuel Smith <ansuelsmth@gmail.com>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 90ae68bf
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);