diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-03-07 11:07:24 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-03-14 14:45:44 +1200 |
commit | 7f0f1f3ef62ed7a40e30aff28115bd94c4211d1d (patch) | |
tree | baaa56838566971a5e6652dd436d99713ac1cf7e /drivers/char | |
parent | cd6714f94091308f07a32b79e0a43f983587da3f (diff) | |
download | linux-stable-7f0f1f3ef62ed7a40e30aff28115bd94c4211d1d.tar.gz linux-stable-7f0f1f3ef62ed7a40e30aff28115bd94c4211d1d.tar.bz2 linux-stable-7f0f1f3ef62ed7a40e30aff28115bd94c4211d1d.zip |
hwrng: nomadik - Change clk_disable to clk_disable_unprepare
The corresponding API for clk_prepare_enable is clk_disable_unprepare,
other than clk_disable_unprepare.
Fix this by changing clk_disable to clk_disable_unprepare.
Fixes: beca35d05cc2 ("hwrng: nomadik - use clk_prepare_enable()")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/hw_random/nomadik-rng.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hw_random/nomadik-rng.c b/drivers/char/hw_random/nomadik-rng.c index 67947a19aa22..e8f9621e7954 100644 --- a/drivers/char/hw_random/nomadik-rng.c +++ b/drivers/char/hw_random/nomadik-rng.c @@ -65,14 +65,14 @@ static int nmk_rng_probe(struct amba_device *dev, const struct amba_id *id) out_release: amba_release_regions(dev); out_clk: - clk_disable(rng_clk); + clk_disable_unprepare(rng_clk); return ret; } static void nmk_rng_remove(struct amba_device *dev) { amba_release_regions(dev); - clk_disable(rng_clk); + clk_disable_unprepare(rng_clk); } static const struct amba_id nmk_rng_ids[] = { |