]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clocksource/drivers/qcom: Add missing iounmap() on errors in msm_dt_timer_init()
authorAnkit Agrawal <agrawal.ag.ankit@gmail.com>
Sat, 13 Jul 2024 09:57:13 +0000 (15:27 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 6 Sep 2024 12:49:21 +0000 (14:49 +0200)
commitca140a0dc0a18acd4653b56db211fec9b2339986
tree603acdbf32f4cc47a8c0d27270bfda809e94ad9f
parent414b2fb4bb5aa09f39262c24ed90b831d18ff984
clocksource/drivers/qcom: Add missing iounmap() on errors in msm_dt_timer_init()

Add the missing iounmap() when clock frequency fails to get read by the
of_property_read_u32() call, or if the call to msm_timer_init() fails.

Fixes: 6e3321631ac2 ("ARM: msm: Add DT support to msm_timer")
Signed-off-by: Ankit Agrawal <agrawal.ag.ankit@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240713095713.GA430091@bnew-VirtualBox
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-qcom.c