Re: [PATCH] rtc: msm6242: use devm_platform_ioremap_resource()

[email protected] Tue, 28 Jul 2026 01:01:40 +0000
Newsgroups org.kernel.vger.linux-rtc
Message-ID <[email protected]>
> Replace the open-coded platform_get_resource() plus devm_ioremap()
> sequence with a single devm_platform_ioremap_resource() call, which folds
> the resource lookup and mapping into one step and returns an ERR_PTR on
> failure, checked with IS_ERR() and propagated via PTR_ERR().
>=20
> The rtc-msm6242 platform device (arch/m68k/amiga/platform.c) provides a
> single IORESOURCE_MEM window (0x00dc0000-0x00dcffff). It shares that
> resource definition with rtc-rp5c01, but the two are registered under the
> mutually exclusive A2000_CLK and A3000_CLK hardware flags, so only one
> RTC device exists on a given machine. The region reservation now
> performed by devm_platform_ioremap_resource() therefore introduces no
> conflict.
>=20
> Assisted-by: opencode:hy3-free
> Signed-off-by: Rosen Penev <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

--=20
Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260728005610.5752=
[email protected]?part=3D1