phy: rockchip-inno-usb2: Prevent incorrect error on probe
Subsystems (2)
PATCH 1/1 phy: rockchip-inno-usb2: Prevent incorrect error on probe
If a phy supply is designated but isn't available at probe time, an EPROBE_DEFER is returned. Use dev_err_probe to prevent this from incorrectly printing during boot.
Signed-off-by Peter Geis <[email protected]>
--- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/rockchip/phy-rockchip-inno-usb2.c +1 -1
@@ -1289,7 +1289,7 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev) phy =devm_phy_create (dev, child_np, &rockchip_usb2phy_ops);if (IS_ERR (phy)) { -dev_err (dev,"failed to create phy\n" ); +dev_err_probe (dev,PTR_ERR (phy),"failed to create phy\n" ); ret =PTR_ERR (phy); goto put_child; }
Signature · 7 lines
2.25.1 -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
Quoted 3 lines · Peter Geis
If a phy supply is designated but isn't available at probe time, an
EPROBE_DEFERis returned. Usedev_err_probeto prevent this from incorrectly printing during boot.
Applied, thanks
Signature · 1 line
~Vinod