]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: talitos - use devm_platform_ioremap_resource()
authorRosen Penev <rosenp@gmail.com>
Thu, 7 May 2026 23:44:16 +0000 (16:44 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:48 +0000 (18:08 +0800)
commit463be1c718fb9f07bdce3d51363a17eac4522538
treef9c04b22f3413db973b3620446f2f03a4a82273a
parent6e12daff6ec125102a6fdcafc5aa7199f7ce8933
crypto: talitos - use devm_platform_ioremap_resource()

platform_get_resource and devm_ioremap effectively open codes this.

The return type of devm_platform_ioremap_resource() is also nice as it
has multiple errors that it can return.

Because it internally calls devm_request_mem_region(), reg values and
sizes cannot overlap. This was manually verified to be the case for all
talitos users.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c