crypto: sa2ul - Fix pm_runtime enable in sa_ul_probe()
authorSuman Anna <s-anna@ti.com>
Fri, 14 May 2021 16:12:43 +0000 (11:12 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 May 2021 00:52:40 +0000 (08:52 +0800)
commit5c8552325e013cbdabc443cd1f1b4d03c4a2e64e
tree0e6663946f2c42354038bd0908405acb79fb630a
parent4c0716ee1d973f6504d13f0e8d4d10350c85ad37
crypto: sa2ul - Fix pm_runtime enable in sa_ul_probe()

The pm_runtime APIs added first in commit 7694b6ca649f ("crypto: sa2ul -
Add crypto driver") are not unwound properly and was fixed up partially
in commit 13343badae09 ("crypto: sa2ul - Fix PM reference leak in
sa_ul_probe()"). This fixed up the pm_runtime usage count but not the
state. Fix this properly.

Fixes: 13343badae09 ("crypto: sa2ul - Fix PM reference leak in sa_ul_probe()")
Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Tero Kristo <kristo@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sa2ul.c