scsi: ufs: host: Convert to dev_err_probe() in ufshcd_pltfrm_init()
authorBrian Masney <bmasney@redhat.com>
Mon, 14 Aug 2023 18:43:52 +0000 (14:43 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 21 Aug 2023 20:45:14 +0000 (16:45 -0400)
commit517f8eb3fa64c206985cf22899d1964626df4ddd
tree59a28c488d438bbdcddf2053ca46faa343ed9307
parent137523237172c78298bd5346c270aecded18630a
scsi: ufs: host: Convert to dev_err_probe() in ufshcd_pltfrm_init()

Convert ufshcd_pltfrm_init() over to use dev_err_probe() to avoid the
following log message on bootup due to an -EPROBE_DEFER return code:

    ufshcd-qcom 1d84000.ufs: Initialization failed

While this line is changed, let's also go ahead and add the error code to
the message as well.

Signed-off-by: Brian Masney <bmasney@redhat.com>
Link: https://lore.kernel.org/r/20230814184352.200531-3-bmasney@redhat.com
Reviewed-by: "Bao D. Nguyen" <quic_nguyenb@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufshcd-pltfrm.c