Message ID | 202303231550560132407@zte.com.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | phy: rockchip-typec: Use dev_err_probe() | expand |
diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c b/drivers/phy/rockchip/phy-rockchip-typec.c index 8b1667be4915..c2e554e0a611 100644 --- a/drivers/phy/rockchip/phy-rockchip-typec.c +++ b/drivers/phy/rockchip/phy-rockchip-typec.c @@ -1153,9 +1153,8 @@ static int rockchip_typec_phy_probe(struct platform_device *pdev) if (PTR_ERR(tcphy->extcon) == -ENODEV) { tcphy->extcon = NULL; } else { - if (PTR_ERR(tcphy->extcon) != -EPROBE_DEFER) - dev_err(dev, "Invalid or missing extcon\n"); - return PTR_ERR(tcphy->extcon); + return dev_err_probe(dev, PTR_ERR(tcphy->extcon), + "Invalid or missing extcon\n"); } }