diff options
Diffstat (limited to 'drivers/crypto/qat/qat_common/adf_admin.c')
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_admin.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_admin.c b/drivers/crypto/qat/qat_common/adf_admin.c index 3744b22f0c46..d28cba34773e 100644 --- a/drivers/crypto/qat/qat_common/adf_admin.c +++ b/drivers/crypto/qat/qat_common/adf_admin.c | |||
@@ -244,18 +244,18 @@ int adf_init_admin_comms(struct adf_accel_dev *accel_dev) | |||
244 | dev_to_node(&GET_DEV(accel_dev))); | 244 | dev_to_node(&GET_DEV(accel_dev))); |
245 | if (!admin) | 245 | if (!admin) |
246 | return -ENOMEM; | 246 | return -ENOMEM; |
247 | admin->virt_addr = dma_zalloc_coherent(&GET_DEV(accel_dev), PAGE_SIZE, | 247 | admin->virt_addr = dma_alloc_coherent(&GET_DEV(accel_dev), PAGE_SIZE, |
248 | &admin->phy_addr, GFP_KERNEL); | 248 | &admin->phy_addr, GFP_KERNEL); |
249 | if (!admin->virt_addr) { | 249 | if (!admin->virt_addr) { |
250 | dev_err(&GET_DEV(accel_dev), "Failed to allocate dma buff\n"); | 250 | dev_err(&GET_DEV(accel_dev), "Failed to allocate dma buff\n"); |
251 | kfree(admin); | 251 | kfree(admin); |
252 | return -ENOMEM; | 252 | return -ENOMEM; |
253 | } | 253 | } |
254 | 254 | ||
255 | admin->virt_tbl_addr = dma_zalloc_coherent(&GET_DEV(accel_dev), | 255 | admin->virt_tbl_addr = dma_alloc_coherent(&GET_DEV(accel_dev), |
256 | PAGE_SIZE, | 256 | PAGE_SIZE, |
257 | &admin->const_tbl_addr, | 257 | &admin->const_tbl_addr, |
258 | GFP_KERNEL); | 258 | GFP_KERNEL); |
259 | if (!admin->virt_tbl_addr) { | 259 | if (!admin->virt_tbl_addr) { |
260 | dev_err(&GET_DEV(accel_dev), "Failed to allocate const_tbl\n"); | 260 | dev_err(&GET_DEV(accel_dev), "Failed to allocate const_tbl\n"); |
261 | dma_free_coherent(&GET_DEV(accel_dev), PAGE_SIZE, | 261 | dma_free_coherent(&GET_DEV(accel_dev), PAGE_SIZE, |