summaryrefslogtreecommitdiff
path: root/drivers/clk/stm32/reset-stm32.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/stm32/reset-stm32.c')
-rw-r--r--drivers/clk/stm32/reset-stm32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/stm32/reset-stm32.c b/drivers/clk/stm32/reset-stm32.c
index 040870130e4b..e89381528af9 100644
--- a/drivers/clk/stm32/reset-stm32.c
+++ b/drivers/clk/stm32/reset-stm32.c
@@ -111,6 +111,7 @@ int stm32_rcc_reset_init(struct device *dev, const struct of_device_id *match,
if (!reset_data)
return -ENOMEM;
+ spin_lock_init(&reset_data->lock);
reset_data->membase = base;
reset_data->rcdev.owner = THIS_MODULE;
reset_data->rcdev.ops = &stm32_reset_ops;