Re: [PATCH] drivers/clocksource/qcom: Add missing iounmap() on error when reading clock frequency.
From: Konrad Dybcio
Date: Wed Jul 10 2024 - 07:54:22 EST
On 10.07.2024 1:08 PM, Ankit Agrawal wrote:
> Add the missing iounmap() when clock frequency fails to get read by the
> of_property_read_u32() call.
>
> Signed-off-by: Ankit Agrawal <agrawal.ag.ankit@xxxxxxxxx>
> ---
Or even better, you can extract:
drivers/platform/x86/intel/pmc/core_ssram.c
32:DEFINE_FREE(pmc_core_iounmap, void __iomem *, iounmap(_T));
into a common header, call it something less intel-specific and use
it with __free() here
Konrad