mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
scsi: ufs: core: Convert to dev_err_probe() in ufshcd_variant_hba_init()
Convert ufshcd_variant_hba_init() over to use dev_err_probe() to avoid log messages like the following on bootup: ufshcd-qcom 1d84000.ufs: ufshcd_variant_hba_init: variant qcom init failed err -517 Signed-off-by: Brian Masney <bmasney@redhat.com> Link: https://lore.kernel.org/r/20230814184352.200531-2-bmasney@redhat.com Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
62ec209209
commit
1375232371
@ -9128,8 +9128,9 @@ static int ufshcd_variant_hba_init(struct ufs_hba *hba)
|
||||
|
||||
err = ufshcd_vops_init(hba);
|
||||
if (err)
|
||||
dev_err(hba->dev, "%s: variant %s init failed err %d\n",
|
||||
__func__, ufshcd_get_var_name(hba), err);
|
||||
dev_err_probe(hba->dev, err,
|
||||
"%s: variant %s init failed with err %d\n",
|
||||
__func__, ufshcd_get_var_name(hba), err);
|
||||
out:
|
||||
return err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user