Re: [PATCH] crypto: omap-sham: use devm_platform_get_and_ioremap_resource
From: Herbert Xu
Date: Sun Jul 26 2026 - 20:37:26 EST
On Wed, Jul 15, 2026 at 03:00:13PM -0700, Rosen Penev wrote:
> Replace the open-coded omap_sham_get_res_of()/omap_sham_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_sham_pdata_omap2 fallback is
> kept for the non-DT (legacy platform_device) case. This removes the
> manual resource copy and ioremap, simplifying probe.
>
> Assisted-by: opencode:hy3-free
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> drivers/crypto/omap-sham.c | 104 +++++++------------------------------
> 1 file changed, 18 insertions(+), 86 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