mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Reviewed-by: Subhash Jadavani <[email protected]> Reviewed-by: Kiwoong Kim <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
6861285ce8
commit
73811c9429
1 changed files with 1 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue