[PATCH 5.15 118/279] counter: stm32-lptimer-cnt: fix error handling when enabling