scsi: ufs-qcom: remove unnecessary call to get controller revision

Since "major", "minor" and "step" are now being saved in
struct ufs_qcom_host, there is no need to call
ufs_qcom_get_controller_revision() here. In addition, those local
variables are not in use in this routine.

Change-Id: I2606f87fc5e54b45a86240c1bccdd8c47009e11a
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
This commit is contained in:
Yaniv Gardi 2015-03-31 15:04:57 +03:00 committed by David Keitel
parent c7082b7844
commit 877d77d0b9

View file

@ -1018,10 +1018,6 @@ static void ufs_qcom_advertise_quirks(struct ufs_hba *hba)
static void ufs_qcom_set_caps(struct ufs_hba *hba)
{
struct ufs_qcom_host *host = hba->priv;
u8 major;
u16 minor, step;
ufs_qcom_get_controller_revision(hba, &major, &minor, &step);
hba->caps |= UFSHCD_CAP_CLK_GATING;
hba->caps |= UFSHCD_CAP_AUTO_BKOPS_SUSPEND;