diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-08-18 12:34:34 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-08-29 11:05:08 +0200 |
commit | d863d5945f2be0abfcd9d36b1a7c605f3eaef517 (patch) | |
tree | 48803fe3c76f89ff76395d3b6bbcd2b61821f362 /arch/s390/include/asm/cpacf.h | |
parent | s390/crypto: simplify return code handling (diff) | |
download | linux-dev-d863d5945f2be0abfcd9d36b1a7c605f3eaef517.tar.xz linux-dev-d863d5945f2be0abfcd9d36b1a7c605f3eaef517.zip |
s390/crypto: simplify init / exit functions
The aes and the des module register multiple crypto algorithms
dependent on the availability of specific CPACF instructions.
To simplify the deregistration with crypto_unregister_alg add
an array with pointers to the successfully registered algorithms
and use it for the error handling in the init function and in
the module exit function.
Reviewed-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/cpacf.h')
0 files changed, 0 insertions, 0 deletions