[PATCH 2/7] phy: qcom-qmp-pcie-msm8996: Use dev_err_probe() to simplify code

Dmitry Baryshkov dmitry.baryshkov at linaro.org
Thu Sep 22 11:03:39 PDT 2022


On 22/09/2022 14:12, Yuan Can wrote:
> 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 at huawei.com>
> ---
>   drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 9 +++------
>   1 file changed, 3 insertions(+), 6 deletions(-)

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>

-- 
With best wishes
Dmitry




More information about the linux-phy mailing list