From: Gaosheng Cui Date: Sat, 3 Aug 2024 06:49:23 +0000 (+0800) Subject: hwrng: cctrng - Add missing clk_disable_unprepare in cctrng_resume X-Git-Tag: v6.12-rc1~231^2~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b7acc85de14ee8a2236f54445dc635d47eceac0;p=thirdparty%2Flinux.git hwrng: cctrng - Add missing clk_disable_unprepare in cctrng_resume Add the missing clk_disable_unprepare() before return in cctrng_resume(). Fixes: a583ed310bb6 ("hwrng: cctrng - introduce Arm CryptoCell driver") Cc: Signed-off-by: Gaosheng Cui Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/cctrng.c b/drivers/char/hw_random/cctrng.c index c0d2f824769f8..4c50efc464835 100644 --- a/drivers/char/hw_random/cctrng.c +++ b/drivers/char/hw_random/cctrng.c @@ -622,6 +622,7 @@ static int __maybe_unused cctrng_resume(struct device *dev) /* wait for Cryptocell reset completion */ if (!cctrng_wait_for_reset_completion(drvdata)) { dev_err(dev, "Cryptocell reset not completed"); + clk_disable_unprepare(drvdata->clk); return -EBUSY; }