crypto: stm32/cryp - don't print error on probe deferral
authorEtienne Carriere <etienne.carriere@foss.st.com>
Tue, 30 Nov 2021 07:54:54 +0000 (08:54 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 11 Dec 2021 05:48:05 +0000 (16:48 +1100)
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>
drivers/crypto/stm32/stm32-cryp.c

index dcdd313..7b55ad6 100644 (file)
@@ -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);
        }