Commit 4b7acc85 authored by Gaosheng Cui's avatar Gaosheng Cui Committed by Herbert Xu

hwrng: cctrng - Add missing clk_disable_unprepare in cctrng_resume

Add the missing clk_disable_unprepare() before return in
cctrng_resume().

Fixes: a583ed31 ("hwrng: cctrng - introduce Arm CryptoCell driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarGaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent d57e2f7c
...@@ -622,6 +622,7 @@ static int __maybe_unused cctrng_resume(struct device *dev) ...@@ -622,6 +622,7 @@ static int __maybe_unused cctrng_resume(struct device *dev)
/* wait for Cryptocell reset completion */ /* wait for Cryptocell reset completion */
if (!cctrng_wait_for_reset_completion(drvdata)) { if (!cctrng_wait_for_reset_completion(drvdata)) {
dev_err(dev, "Cryptocell reset not completed"); dev_err(dev, "Cryptocell reset not completed");
clk_disable_unprepare(drvdata->clk);
return -EBUSY; return -EBUSY;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment