diff options
author | Amelie Delaunay <amelie.delaunay@st.com> | 2020-11-10 16:05:31 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-11-16 12:49:03 +0300 |
commit | f98130b34515544d3004ea64ea1dc9db77e9c65a (patch) | |
tree | 4ef6734c60ec5dac112c193a6b2478f7f9caa61c /drivers/phy | |
parent | 86f1a6e6c5f700f27bbee046ad330b6a50707a24 (diff) | |
download | linux-f98130b34515544d3004ea64ea1dc9db77e9c65a.tar.xz |
phy: stm32: don't print an error on probe deferral
Change stm32-usbphyc driver to not print an error message when the device
probe operation is deferred.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Link: https://lore.kernel.org/r/20201110130531.7610-1-amelie.delaunay@st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/st/phy-stm32-usbphyc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c index 0ab18f2078db..8ebfd567d407 100644 --- a/drivers/phy/st/phy-stm32-usbphyc.c +++ b/drivers/phy/st/phy-stm32-usbphyc.c @@ -326,11 +326,8 @@ static int stm32_usbphyc_probe(struct platform_device *pdev) return PTR_ERR(usbphyc->base); usbphyc->clk = devm_clk_get(dev, NULL); - if (IS_ERR(usbphyc->clk)) { - ret = PTR_ERR(usbphyc->clk); - dev_err(dev, "clk get failed: %d\n", ret); - return ret; - } + if (IS_ERR(usbphyc->clk)) + return dev_err_probe(dev, PTR_ERR(usbphyc->clk), "clk get_failed\n"); ret = clk_prepare_enable(usbphyc->clk); if (ret) { |