Skip to content

Commit

Permalink
crypto: qat - remove cast for mailbox CSR
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adam Guerin authored and Herbert Xu committed Nov 13, 2020
1 parent 6569e30 commit ec3c5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/qat/qat_common/adf_admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ec3c5b3

Please sign in to comment.