Commit b516b88a authored by Wei Yongjun's avatar Wei Yongjun Committed by Herbert Xu

hwrng: atmel - use clk_disable_unprepare instead of clk_disable

Since clk_prepare_enable() is used to get trng->clk, we should
use clk_disable_unprepare() to release it for the error path.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 9b50184e
...@@ -94,7 +94,7 @@ static int atmel_trng_probe(struct platform_device *pdev) ...@@ -94,7 +94,7 @@ static int atmel_trng_probe(struct platform_device *pdev)
return 0; return 0;
err_register: err_register:
clk_disable(trng->clk); clk_disable_unprepare(trng->clk);
return ret; return ret;
} }
......
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