|
@@ -272,12 +272,10 @@ int adf_dev_stop(struct adf_accel_dev *accel_dev)
|
|
clear_bit(ADF_STATUS_STARTING, &accel_dev->status);
|
|
clear_bit(ADF_STATUS_STARTING, &accel_dev->status);
|
|
clear_bit(ADF_STATUS_STARTED, &accel_dev->status);
|
|
clear_bit(ADF_STATUS_STARTED, &accel_dev->status);
|
|
|
|
|
|
- if (!list_empty(&accel_dev->crypto_list) && qat_algs_unregister())
|
|
|
|
- dev_err(&GET_DEV(accel_dev),
|
|
|
|
- "Failed to unregister crypto algs\n");
|
|
|
|
-
|
|
|
|
- if (!list_empty(&accel_dev->crypto_list))
|
|
|
|
|
|
+ if (!list_empty(&accel_dev->crypto_list)) {
|
|
|
|
+ qat_algs_unregister();
|
|
qat_asym_algs_unregister();
|
|
qat_asym_algs_unregister();
|
|
|
|
+ }
|
|
|
|
|
|
list_for_each(list_itr, &service_table) {
|
|
list_for_each(list_itr, &service_table) {
|
|
service = list_entry(list_itr, struct service_hndl, list);
|
|
service = list_entry(list_itr, struct service_hndl, list);
|