e5f3edfa51d6cee25e1b10a2921720f5b109364f
[openwrt/openwrt.git] /
1 From 994c28b6f971fa5db8ae977daea37eee87d93d51 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Mon, 22 Nov 2021 16:23:42 +0100
4 Subject: net: dsa: qca8k: remove extra mutex_init in qca8k_setup
5
6 Mutex is already init in sw_probe. Remove the extra init in qca8k_setup.
7
8 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
9 Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
10 Signed-off-by: David S. Miller <davem@davemloft.net>
11 ---
12 drivers/net/dsa/qca8k.c | 2 --
13 1 file changed, 2 deletions(-)
14
15 diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c
16 index 0eceb9cba2dc8..ae02043a52079 100644
17 --- a/drivers/net/dsa/qca8k.c
18 +++ b/drivers/net/dsa/qca8k.c
19 @@ -1086,8 +1086,6 @@ qca8k_setup(struct dsa_switch *ds)
20 if (ret)
21 return ret;
22
23 - mutex_init(&priv->reg_mutex);
24 -
25 /* Start by setting up the register mapping */
26 priv->regmap = devm_regmap_init(ds->dev, NULL, priv,
27 &qca8k_regmap_config);
28 --
29 cgit 1.2.3-1.el7
30