Re: [PATCH] crypto: omap-sham: use devm_platform_get_and_ioremap_resource
Herbert Xu <[email protected]> Mon, 27 Jul 2026 10:34:18 +1000
| Newsgroups | org.kernel.vger.linux-crypto,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> > --- > drivers/crypto/omap-sham.c | 104 +++++++------------------------------ > 1 file changed, 18 insertions(+), 86 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt