diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-11-23 23:15:21 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-11-25 06:15:04 +0100 |
commit | 97ba12d3feca68dd240ba49c9559d9a3e13cf0cd (patch) | |
tree | 2e5a6c4f5c3aae205b3c97e555235c9f03d4aaa6 /drivers/phy | |
parent | phy: intel: Add Thunder Bay eMMC PHY support (diff) | |
download | linux-97ba12d3feca68dd240ba49c9559d9a3e13cf0cd.tar.xz linux-97ba12d3feca68dd240ba49c9559d9a3e13cf0cd.zip |
phy: bcm-ns-usb2: improve printing ref clk errors
Improve message & use dev_err_probe() helper which prints actual error
(helpful for debugging) and deals with -EPROBE_DEFER.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20211123221521.25323-1-zajec5@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/broadcom/phy-bcm-ns-usb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/broadcom/phy-bcm-ns-usb2.c b/drivers/phy/broadcom/phy-bcm-ns-usb2.c index 98d32729a45d..6a36e187d100 100644 --- a/drivers/phy/broadcom/phy-bcm-ns-usb2.c +++ b/drivers/phy/broadcom/phy-bcm-ns-usb2.c @@ -132,7 +132,7 @@ static int bcm_ns_usb2_probe(struct platform_device *pdev) usb2->ref_clk = devm_clk_get(dev, "phy-ref-clk"); if (IS_ERR(usb2->ref_clk)) { - dev_err(dev, "Clock not defined\n"); + dev_err_probe(dev, PTR_ERR(usb2->ref_clk), "failed to get ref clk\n"); return PTR_ERR(usb2->ref_clk); } |