Thread (23 messages) 23 messages, 2 authors, 2022-11-24
STALE1286d REVIEWED: 1 (0M)
Revisions (5)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3 current
  4. v4 [diff vs current]
  5. v5 [diff vs current]

[PATCH v3 13/20] scsi: ufs: ufs-qcom: Use dev_err_probe() for printing probe error

From: Manivannan Sadhasivam <hidden>
Date: 2022-11-23 07:51:31
Also in: linux-arm-msm, linux-scsi, lkml
Subsystem: arm/qualcomm mailing list, scsi subsystem, the rest, universal flash storage host controller driver qualcomm hooks · Maintainers: "James E.J. Bottomley", "Martin K. Petersen", Linus Torvalds, Manivannan Sadhasivam

Make use of dev_err_probe() for printing the probe error.

Reviewed-by: Andrew Halaney <redacted>
Signed-off-by: Manivannan Sadhasivam <redacted>
---
 drivers/ufs/host/ufs-qcom.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
index 8bb0f4415f1a..38e2ed749d75 100644
--- a/drivers/ufs/host/ufs-qcom.c
+++ b/drivers/ufs/host/ufs-qcom.c
@@ -1441,9 +1441,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;
 }
 
 /**
-- 
2.25.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help