From: Sebastian Reichel Date: Mon, 22 May 2023 17:03:24 +0000 (+0200) Subject: phy: phy-rockchip-inno-usb2: improve error message X-Git-Tag: v6.6.17~4009^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3a379936335c7e6e2e6cc3188fe1e8bde222290;p=platform%2Fkernel%2Flinux-rpi.git phy: phy-rockchip-inno-usb2: improve error message Printing the OF node is not useful, since we get the same information from the device context. Instead print the reg address, that could not be found. Signed-off-by: Sebastian Reichel Link: https://lore.kernel.org/r/20230522170324.61349-8-sebastian.reichel@collabora.com Signed-off-by: Vinod Koul --- diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index f5c30f1..b982c3f0 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -1377,8 +1377,7 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev) } while (phy_cfgs[index].reg); if (!rphy->phy_cfg) { - dev_err(dev, "no phy-config can be matched with %pOFn node\n", - np); + dev_err(dev, "could not find phy config for reg=0x%08x\n", reg); return -EINVAL; }