mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From b113e55913e7f7f031d6cbf9d7b585c6b112f55a Mon Sep 17 00:00:00 2001
|
|
From: Peter Geis <pgwipeout@gmail.com>
|
|
Date: Sat, 25 Jun 2022 17:27:11 -0400
|
|
Subject: [PATCH] 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 <pgwipeout@gmail.com>
|
|
Link: https://lore.kernel.org/r/20220625212711.558495-1-pgwipeout@gmail.com
|
|
Signed-off-by: Vinod Koul <vkoul@kernel.org>
|
|
---
|
|
drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
|
|
+++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
|
|
@@ -1293,7 +1293,7 @@ static int rockchip_usb2phy_probe(struct
|
|
|
|
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;
|
|
}
|