crypto: ice: general driver clean-up

* Removed spinlock as it was not locking against anything
* Removed conversion of interrupt status to error number
  as it is not used by API client, and in case several bits are
  set only 1 error is ever handled and the rest get lost.
  Instead pass to the client the complete status.
* Removed redundant includes, variables
* vops structure is returned after performing a lookup in the DTS.
  There's no need for that as we already know the structure
  to return.
* Other minor corrections

Change-Id: I6d2549ce04c9e4b19fdd8fe3dfee03d83bfd9d77
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
[venkatg@codeaurora.org: dropped ice driver and mmc ice changes]
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
This commit is contained in:
Gilad Broner 2015-10-28 17:57:14 +02:00 committed by David Keitel
parent 8414f23377
commit b18a536dcd

View file

@ -56,12 +56,12 @@ void ufs_qcom_ice_print_regs(struct ufs_qcom_host *qcom_host)
} }
static void ufs_qcom_ice_error_cb(void *host_ctrl, enum ice_error_code evt) static void ufs_qcom_ice_error_cb(void *host_ctrl, u32 error)
{ {
struct ufs_qcom_host *qcom_host = (struct ufs_qcom_host *)host_ctrl; struct ufs_qcom_host *qcom_host = (struct ufs_qcom_host *)host_ctrl;
dev_err(qcom_host->hba->dev, "%s: Error in ice operation %d", dev_err(qcom_host->hba->dev, "%s: Error in ice operation 0x%x",
__func__, evt); __func__, error);
if (qcom_host->ice.state == UFS_QCOM_ICE_STATE_ACTIVE) if (qcom_host->ice.state == UFS_QCOM_ICE_STATE_ACTIVE)
qcom_host->ice.state = UFS_QCOM_ICE_STATE_DISABLED; qcom_host->ice.state = UFS_QCOM_ICE_STATE_DISABLED;