[PATCH] rtc: ftrtc010: use devm_platform_ioremap_resource()

Linus Walleij linusw at kernel.org
Mon Oct 5 01:57:37 PDT 2026


On Mon, Oct 5, 2026 at 12:03 AM Rosen Penev <rosenp at gmail.com> wrote:

> Replace the open-coded platform_get_resource() plus devm_ioremap()
> sequence with devm_platform_ioremap_resource(), and propagate its
> ERR_PTR() directly.
>
> This also reserves the MMIO region. The only user, gemini.dtsi,
> describes a single 0x100 window at 0x45000000 that no other node
> overlaps, so this introduces no conflict.
>
> Assisted-by: LLM
> Signed-off-by: Rosen Penev <rosenp at gmail.com>

Looks good, thanks Rosen!
Reviewed-by: Linus Walleij <linusw at kernel.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list