Re: [PATCH v3 2/2] scsi: ufs: host: convert to dev_err_probe() in pltfrm_init

From: Bao D. Nguyen
Date: Mon Aug 14 2023 - 23:43:59 EST


diff --git a/drivers/ufs/host/ufshcd-pltfrm.c b/drivers/ufs/host/ufshcd-pltfrm.c
index 0b7430033047..c81a14f9eaf5 100644
--- a/drivers/ufs/host/ufshcd-pltfrm.c
+++ b/drivers/ufs/host/ufshcd-pltfrm.c
@@ -373,7 +373,8 @@ int ufshcd_pltfrm_init(struct platform_device *pdev,
err = ufshcd_init(hba, mmio_base, irq);
if (err) {
- dev_err(dev, "Initialization failed\n");
+ dev_err_probe(dev, err, "Initialization failed with error %d\n",
+ err);
goto dealloc_host;
}

Reviewed-by: Bao D. Nguyen <quic_nguyenb@xxxxxxxxxxx>