diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2022-12-22 19:39:54 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-01-11 21:49:34 -0500 |
commit | 132b027205ef94a1d933d0f08a4109b1e321bda2 (patch) | |
tree | 72bd6548e52d3730172957f0298253ae1f2fffc0 /drivers | |
parent | 18fe2ab79bcf00c17d00460ca3f8c179d0aa87a4 (diff) | |
download | linux-132b027205ef94a1d933d0f08a4109b1e321bda2.tar.gz linux-132b027205ef94a1d933d0f08a4109b1e321bda2.tar.bz2 linux-132b027205ef94a1d933d0f08a4109b1e321bda2.zip |
scsi: ufs: ufs-qcom: Use dev_err_probe() for printing probe error
Make use of dev_err_probe() for printing the probe error.
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Asutosh Das <quic_asutoshd@quicinc.com>
Tested-by: Andrew Halaney <ahalaney@redhat.com> # Qdrive3/sa8540p-ride
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ufs/host/ufs-qcom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 2557f034347e..b96e8b758d69 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -1408,9 +1408,9 @@ static int ufs_qcom_probe(struct platform_device *pdev) /* Perform generic probe */ err = ufshcd_pltfrm_init(pdev, &ufs_hba_qcom_vops); if (err) - dev_err(dev, "ufshcd_pltfrm_init() failed %d\n", err); + return dev_err_probe(dev, err, "ufshcd_pltfrm_init() failed\n"); - return err; + return 0; } /** |