summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-28 14:49:42 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2016-09-29 21:37:03 -0400
commit73811c942954a1d2470656d1bd9e990e327ac580 (patch)
tree9735a2ffe6797c3f747048092e9117c02c3d6bee /drivers/scsi
parent6861285ce8f8a9a55aab4775847de6e48b2dc7f2 (diff)
downloadop-kernel-dev-73811c942954a1d2470656d1bd9e990e327ac580.zip
op-kernel-dev-73811c942954a1d2470656d1bd9e990e327ac580.tar.gz
scsi: ufs: Fix error return code in ufshcd_init()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org> Reviewed-by: Kiwoong Kim <kwmad.kim@samsung.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ufs/ufshcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index d2ec425..05c7456 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -6503,6 +6503,7 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq)
if (IS_ERR(hba->devfreq)) {
dev_err(hba->dev, "Unable to register with devfreq %ld\n",
PTR_ERR(hba->devfreq));
+ err = PTR_ERR(hba->devfreq);
goto out_remove_scsi_host;
}
/* Suspend devfreq until the UFS device is detected */
OpenPOWER on IntegriCloud