summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Guerin <adam.guerin@intel.com>2020-11-02 20:04:54 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-11-13 12:38:43 +0300
commitec3c5b32fccc537e7184dcf39387b2e57d12f517 (patch)
tree6c5ca2cb365be247a1bb352662a6437d6bf1efd0
parent6569e3097f1c4a490bdf2b23d326855e04942dfd (diff)
downloadlinux-ec3c5b32fccc537e7184dcf39387b2e57d12f517.tar.xz
crypto: qat - remove cast for mailbox CSR
Remove cast for mailbox CSR in adf_admin.c as it is not needed. Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Adam Guerin <adam.guerin@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/qat/qat_common/adf_admin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_admin.c b/drivers/crypto/qat/qat_common/adf_admin.c
index 7c2ca54229aa..43680e178242 100644
--- a/drivers/crypto/qat/qat_common/adf_admin.c
+++ b/drivers/crypto/qat/qat_common/adf_admin.c
@@ -254,7 +254,7 @@ int adf_init_admin_comms(struct adf_accel_dev *accel_dev)
hw_data->get_admin_info(&admin_csrs_info);
mailbox_offset = admin_csrs_info.mailbox_offset;
- mailbox = (void __iomem *)((uintptr_t)csr + mailbox_offset);
+ mailbox = csr + mailbox_offset;
adminmsg_u = admin_csrs_info.admin_msg_ur;
adminmsg_l = admin_csrs_info.admin_msg_lr;