crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Fri, 13 Nov 2020 13:17:28 +0000 (21:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Nov 2020 03:45:34 +0000 (14:45 +1100)
commitff8107200367f4abe0e5bce66a245e8d0f2d229e
treeba44ad5f49c9b9d338c9da7fd04fbfdeacf71dbe
parent1dc440355e472a60a98cb4ec9aa5ec56267a96fc
crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe

The pm_runtime_enable will increase power disable depth.
Thus a pairing decrement is needed on the error handling
path to keep it balanced according to context.

Fixes: f7b2b5dd6a62a ("crypto: omap-aes - add error check for pm_runtime_get_sync")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c