Re: [PATCH] counter: ftm-quaddec: use devm_platform_ioremap_resource
From: William Breathitt Gray
Date: Sun Aug 30 2026 - 17:56:02 EST
On Tue, Jul 14, 2026 at 04:43:50PM -0700, Rosen Penev wrote:
> Replace the open-coded platform_get_resource() plus devm_ioremap()
> sequence with devm_platform_ioremap_resource(), which fetches the
> resource, requests the region and maps it in one call. Switch the error
> check to IS_ERR()/PTR_ERR() and drop the now-unused struct resource
> pointer.
>
> The DT nodes (counter@29d0000 / counter@29e0000 in ls1021a.dtsi) each
> have a single 0x10000 reg region, so the region reservation added by
> devm_ioremap_resource() is exclusive and does not introduce overlap
> failures.
>
> Built for ARM (drivers/counter/ftm-quaddec.o) with LLVM=1.
>
> Assisted-by: opencode:hy3-free
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
Hi Rosen,
Patrick Havelange is stepping down from maintenance of this driver, so
ftm-quaddec is currently considered to be in an Orphan status.[^1] If a
new maintainer comes along in the future to maintain this driver, they
will be able to assist the review of this patch.
Sincerely,
William Breathitt Gray
[^1]: https://lore.kernel.org/all/20260830-orphan-counter-drivers-v1-2-3b10ab8b3876@xxxxxxxxxx/