mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
hwrng: nomadik - Change clk_disable to clk_disable_unprepare
[ Upstream commit7f0f1f3ef6] 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:beca35d05c("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e4c777fd8c
commit
7ca525b4cc
|
|
@ -65,14 +65,14 @@ static int nmk_rng_probe(struct amba_device *dev, const struct amba_id *id)
|
||||||
out_release:
|
out_release:
|
||||||
amba_release_regions(dev);
|
amba_release_regions(dev);
|
||||||
out_clk:
|
out_clk:
|
||||||
clk_disable(rng_clk);
|
clk_disable_unprepare(rng_clk);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nmk_rng_remove(struct amba_device *dev)
|
static void nmk_rng_remove(struct amba_device *dev)
|
||||||
{
|
{
|
||||||
amba_release_regions(dev);
|
amba_release_regions(dev);
|
||||||
clk_disable(rng_clk);
|
clk_disable_unprepare(rng_clk);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct amba_id nmk_rng_ids[] = {
|
static const struct amba_id nmk_rng_ids[] = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user