diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-11-22 16:23:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-22 15:35:16 +0000 |
commit | 994c28b6f971fa5db8ae977daea37eee87d93d51 (patch) | |
tree | 6687ebe70df3e48cf49de79de854229971c89249 /drivers/net | |
parent | 90ae68bfc2ffcb54a4ba4f64edbeb84a80cbb57c (diff) | |
download | linux-994c28b6f971fa5db8ae977daea37eee87d93d51.tar.bz2 |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dsa/qca8k.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c index 0eceb9cba2dc..ae02043a5207 100644 --- a/drivers/net/dsa/qca8k.c +++ b/drivers/net/dsa/qca8k.c @@ -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); |