crypto: stm32/cryp - fix double pm exit
authorNicolas Toromanoff <nicolas.toromanoff@foss.st.com>
Tue, 30 Nov 2021 07:54:58 +0000 (08:54 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 11 Dec 2021 05:48:06 +0000 (16:48 +1100)
Delete extraneous lines in probe error handling code: pm was
disabled twice.

Fixes: 65f9aa36ee47 ("crypto: stm32/cryp - Add power management support")

Reported-by: Marek Vasut <marex@denx.de>
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 06c03db..3f71d92 100644 (file)
@@ -2141,8 +2141,6 @@ err_engine1:
 err_rst:
        pm_runtime_disable(dev);
        pm_runtime_put_noidle(dev);
-       pm_runtime_disable(dev);
-       pm_runtime_put_noidle(dev);
 
        clk_disable_unprepare(cryp->clk);