OpenCloudOS-Kernel/drivers/crypto/cavium/zip
Corentin Labbe 2f5ee72ee9 crypto: cavium/zip - register algorithm only if hardware is present
On my renesas salavator-X, I saw some cavium driver failing crypto
self-tests.
But salvator does not have such hardware.
This is due to cavium/zip driver registering algorithms even if hardware
is not present.
The solution is to move algorithm registration in the probe function.
This permits also to simplify module init/exit by using
module_pci_driver.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2022-03-03 10:46:19 +12:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
common.h crypto: cavium/zip - remove unused including <linux/version.h> 2021-04-16 21:16:32 +10:00
zip_crypto.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
zip_crypto.h
zip_deflate.c crypto: cavium - Limit result reading attempts 2018-04-21 00:58:35 +08:00
zip_deflate.h
zip_device.c crypto: cavium - Fix smp_processor_id() warnings 2018-04-21 00:58:36 +08:00
zip_device.h
zip_inflate.c crypto: cavium - Limit result reading attempts 2018-04-21 00:58:35 +08:00
zip_inflate.h
zip_main.c crypto: cavium/zip - register algorithm only if hardware is present 2022-03-03 10:46:19 +12:00
zip_main.h crypto: cavium - Fix statistics pending request value 2018-04-21 00:58:35 +08:00
zip_mem.c
zip_mem.h
zip_regs.h crypto: cavium - Remove unnecessary parentheses 2018-04-28 16:09:38 +08:00