diff options
author | Etienne Carriere <etienne.carriere@foss.st.com> | 2021-11-30 08:54:54 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-12-11 06:48:05 +0100 |
commit | 029812aee3a120c9ca3cd891e5ef159ec3c6c547 (patch) | |
tree | 39c816f63a92251d40b32f6857898db0a5bebbad /drivers/crypto/stm32 | |
parent | crypto: stm32/cryp - defer probe for reset controller (diff) | |
download | linux-029812aee3a120c9ca3cd891e5ef159ec3c6c547.tar.xz linux-029812aee3a120c9ca3cd891e5ef159ec3c6c547.zip |
crypto: stm32/cryp - don't print error on probe deferral
Change driver to not print an error message when the device
probe is deferred for a clock resource.
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@foss.st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/stm32')
-rw-r--r-- | drivers/crypto/stm32/stm32-cryp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/stm32/stm32-cryp.c b/drivers/crypto/stm32/stm32-cryp.c index dcdd313485de..7b55ad6d2f1a 100644 --- a/drivers/crypto/stm32/stm32-cryp.c +++ b/drivers/crypto/stm32/stm32-cryp.c @@ -1955,7 +1955,8 @@ static int stm32_cryp_probe(struct platform_device *pdev) cryp->clk = devm_clk_get(dev, NULL); if (IS_ERR(cryp->clk)) { - dev_err(dev, "Could not get clock\n"); + dev_err_probe(dev, PTR_ERR(cryp->clk), "Could not get clock\n"); + return PTR_ERR(cryp->clk); } |