Commit d148c095 authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Greg Kroah-Hartman
Browse files

counter: stm32-timer-cnt: Add check for clk_enable()



[ Upstream commit 842c3755 ]

Add check for the return value of clk_enable() in order to catch the
potential exception.

Fixes: c5b84255 ("counter: stm32-timer-cnt: add power management support")
Fixes: ad29937e ("counter: Add STM32 Timer quadrature encoder")
Signed-off-by: default avatarJiasheng Jiang <jiashengjiangcool@gmail.com>
Link: https://lore.kernel.org/r/20241104191825.40155-1-jiashengjiangcool@gmail.com


Signed-off-by: default avatarWilliam Breathitt Gray <wbg@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 098480ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment