Re: [PATCH] crypto: omap-aes: use devm_platform_get_and_ioremap_resource

From: Herbert Xu

Date: Sun Jul 26 2026 - 20:37:06 EST


On Wed, Jul 15, 2026 at 02:58:48PM -0700, Rosen Penev wrote:
> Replace the open-coded omap_aes_get_res_of()/omap_aes_get_res_pdev()
> helpers and the #ifdef CONFIG_OF machinery with the managed
> devm_platform_get_and_ioremap_resource(), platform_get_irq() and
> device_get_match_data() helpers. The omap_aes_pdata_omap2 fallback is
> kept for the non-DT (legacy platform_device) case, and the now-unused
> err_res label is removed.
>
> Assisted-by: opencode:hy3-free
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> drivers/crypto/omap-aes.c | 84 ++++++---------------------------------
> 1 file changed, 12 insertions(+), 72 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt