Skip to content

Commit b1f2477

Browse files
Wang Haibebarino
authored andcommitted
clk: stm32mp1: 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: c392df1 ("clk: stm32mp1: move RCC reset controller into RCC clock driver") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wang Hai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent d2b2101 commit b1f2477

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/clk-stm32mp1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,7 @@ static int stm32_rcc_reset_init(struct device *dev, void __iomem *base,
22632263
if (!reset_data)
22642264
return -ENOMEM;
22652265

2266+
spin_lock_init(&reset_data->lock);
22662267
reset_data->membase = base;
22672268
reset_data->rcdev.owner = THIS_MODULE;
22682269
reset_data->rcdev.ops = &stm32_reset_ops;

0 commit comments

Comments
 (0)