]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: mediatek - remove ARM dependencies
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Jan 2017 13:50:19 +0000 (14:50 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Jan 2017 16:26:47 +0000 (00:26 +0800)
commit3fb63673d4f99542fe3a4a0930eafcc6af9f44b2
treee330e9f08ac46a648fcc608bbeb8ad8a3145bceb
parentd80dfbb7189837197227ed7a41945c9275ad7e46
crypto: mediatek - remove ARM dependencies

Building the mediatek driver on an older ARM architecture results in a
harmless warning:

warning: (ARCH_OMAP2PLUS_TYPICAL && CRYPTO_DEV_MEDIATEK) selects NEON which has unmet direct dependencies (VFPv3 && CPU_V7)

We could add an explicit dependency on CPU_V7, but it seems nicer to
open up the build to additional configurations. This replaces the ARM
optimized algorithm selection with the normal one that all other drivers
use, and that in turn lets us relax the dependency on ARM and drop
a number of the unrelated 'select' statements.

Obviously a real user would still select those other optimized drivers
as a fallback, but as there is no strict dependency, we can leave that
up to the user.

Fixes: b854f7f266c6 ("crypto: mediatek - Add crypto driver support for some MediaTek chips")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig