phy: qcom-qmp-pcie-msm8996: Use dev_err_probe() to simplify code
authorYuan Can <yuancan@huawei.com>
Sat, 24 Sep 2022 07:02:58 +0000 (07:02 +0000)
committerVinod Koul <vkoul@kernel.org>
Sat, 24 Sep 2022 07:33:49 +0000 (13:03 +0530)
commit413e048a2e51bcc96667c711785b40cf742fb366
tree1b895b5743c4937f1536e19961203b3f06db5131
parent4c0255e7957d5a536c6da7ba08cbb46540fb5d42
phy: qcom-qmp-pcie-msm8996: Use dev_err_probe() to simplify code

In the probe path, dev_err() can be replaced with dev_err_probe()
which will check if error code is -EPROBE_DEFER and prints the
error name. It also sets the defer probe reason which can be
checked later through debugfs.

Signed-off-by: Yuan Can <yuancan@huawei.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Link: https://lore.kernel.org/r/20220924070300.25080-3-yuancan@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c