clk: stm32: rcc_reset: Fix missing spin_lock_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 8 Jun 2022 02:11:54 +0000 (02:11 +0000)
committerStephen Boyd <sboyd@kernel.org>
Thu, 9 Jun 2022 22:34:08 +0000 (15:34 -0700)
commita1ea0857b59757733d58908dd55bf4b722ee574f
tree46b12e6898224c71aee38cbc37609faf86621288
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
clk: stm32: rcc_reset: Fix missing spin_lock_init()

The driver allocates the spinlock but not initialize it.
Use spin_lock_init() on it to initialize it correctly.

Fixes: 637cee5ffc71 ("clk: stm32: Introduce STM32MP13 RCC drivers (Reset Clock Controller)")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20220608021154.990347-1-weiyongjun1@huawei.com
Tested-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Reviewed-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/stm32/reset-stm32.c