diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2022-02-21 11:52:34 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-03-03 10:46:19 +1200 |
commit | 2f5ee72ee950a677069ee8ab75af40cebba3bb3c (patch) | |
tree | 558bdf51efae37baaa6fcf1444de4198f13f4efe /lib/mpi/mpi-sub-ui.c | |
parent | 53e748c2758ca24854b6ce89fb08a93a36772dc0 (diff) |
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>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions