projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90ae68b
)
net: dsa: qca8k: remove extra mutex_init in qca8k_setup
author
Ansuel Smith
<ansuelsmth@gmail.com>
Mon, 22 Nov 2021 15:23:42 +0000
(16:23 +0100)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/qca8k.c
b/drivers/net/dsa/qca8k.c
index
0eceb9c
..
ae02043
100644
(file)
--- 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);