Skip to content

Commit 9f266c1

Browse files
tq-steinavinodkoul
authored andcommitted
phy: fsl-imx8mq-usb: add dev_err_probe if getting vbus failed
This adds an error message if getting vbus failed for some reason, -EPROBE_DEFER is handled appropriately as well and adds a nice information to debugfs. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Link: https://lore.kernel.org/r/20230816080256.611380-1-alexander.stein@ew.tq-group.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 08e49af commit 9f266c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/freescale/phy-fsl-imx8mq-usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev)
394394

395395
imx_phy->vbus = devm_regulator_get(dev, "vbus");
396396
if (IS_ERR(imx_phy->vbus))
397-
return PTR_ERR(imx_phy->vbus);
397+
return dev_err_probe(dev, PTR_ERR(imx_phy->vbus), "failed to get vbus\n");
398398

399399
phy_set_drvdata(imx_phy->phy, imx_phy);
400400

0 commit comments

Comments
 (0)