From: Nicolas Toromanoff Date: Tue, 30 Nov 2021 07:54:58 +0000 (+0100) Subject: crypto: stm32/cryp - fix double pm exit X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6c12e742785bf9333faf60bfb96575bdd763448e;p=linux.git crypto: stm32/cryp - fix double pm exit 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 Signed-off-by: Nicolas Toromanoff Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/stm32/stm32-cryp.c b/drivers/crypto/stm32/stm32-cryp.c index 06c03db0d11b6..3f71d927843cd 100644 --- a/drivers/crypto/stm32/stm32-cryp.c +++ b/drivers/crypto/stm32/stm32-cryp.c @@ -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);