crypto: cavium/zip - fix collision with generic cra_driver_name
authorEric Biggers <ebiggers@google.com>
Sat, 23 Feb 2019 08:23:23 +0000 (00:23 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Feb 2019 06:37:35 +0000 (14:37 +0800)
commit41798036430015ad45137db2d4c213cd77fd0251
tree945e4ffecc5bc9d3de53f3923337701856a89e09
parent91e14842f8ea8dc35669bad3c3dcd72d4614e4d1
crypto: cavium/zip - fix collision with generic cra_driver_name

The cavium/zip implementation of the deflate compression algorithm is
incorrectly being registered under the generic driver name, which
prevents the generic implementation from being registered with the
crypto API when CONFIG_CRYPTO_DEV_CAVIUM_ZIP=y.  Similarly the lzs
algorithm (which does not currently have a generic implementation...)
is incorrectly being registered as lzs-generic.

Fix the naming collision by adding a suffix "-cavium" to the
cra_driver_name of the cavium/zip algorithms.

Fixes: 640035a2dc55 ("crypto: zip - Add ThunderX ZIP driver core")
Cc: Mahipal Challa <mahipalreddy2006@gmail.com>
Cc: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/zip/zip_main.c