]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 08:04:19 +0000 (09:04 +0100)
[ Upstream commit 6c12e742785bf9333faf60bfb96575bdd763448e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/stm32/stm32-cryp.c

index 23b0b7bd64c7f8388e0e641f86cd7ecbdd95b40e..b3b49dce1136955e84af78c824f576a28452ef89 100644 (file)
@@ -2036,8 +2036,6 @@ err_engine1:
        list_del(&cryp->list);
        spin_unlock(&cryp_list.lock);
 
-       pm_runtime_disable(dev);
-       pm_runtime_put_noidle(dev);
        pm_runtime_disable(dev);
        pm_runtime_put_noidle(dev);