]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: omap-des - add COMPILE_TEST and fix CONFIG_OF=n build
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 17 May 2026 10:34:14 +0000 (12:34 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2026 12:25:30 +0000 (20:25 +0800)
commit083c9ab12c402efe9ed55c942ede92eb35f8bf2a
tree6e3af5375bd6e8ea041df77669a7ed5ac130aa3a
parent2f07f4192687a4fd7352c30bb01160f02f10e9d6
crypto: omap-des - add COMPILE_TEST and fix CONFIG_OF=n build

CRYPTO_DEV_OMAP_DES only depends on ARCH_OMAP2PLUS, which is ARM-only
and selects OF via ARM's USE_OF, making any non-OF code unreachable.

Add COMPILE_TEST so the driver can be built with CONFIG_OF=n, making the
non-OF code reachable.

Fix the resulting non-OF build failures:

- omap_des_irq() was defined inside a CONFIG_OF block, but is referenced
  unconditionally from omap_des_probe(). Move the CONFIG_OF guard so it
  only covers omap_des_get_of().

- The non-OF omap_des_get_of() stub took a struct device *, while
  omap_des_probe() passes a struct platform_device *. Make the stub
  prototype match the OF implementation and the caller.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig
drivers/crypto/omap-des.c