Commit 97ba12d3 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Vinod Koul

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: default avatarRafał Miłecki <rafal@milecki.pl>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20211123221521.25323-1-zajec5@gmail.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 97004c1a
...@@ -132,7 +132,7 @@ static int bcm_ns_usb2_probe(struct platform_device *pdev) ...@@ -132,7 +132,7 @@ static int bcm_ns_usb2_probe(struct platform_device *pdev)
usb2->ref_clk = devm_clk_get(dev, "phy-ref-clk"); usb2->ref_clk = devm_clk_get(dev, "phy-ref-clk");
if (IS_ERR(usb2->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); return PTR_ERR(usb2->ref_clk);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment