mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
hwrng: omap3-rom - fix using wrong clk_disable() in omap_rom_rng_runtime_resume()
[ Upstream commite4e62bbc6a
] 'ddata->clk' is enabled by clk_prepare_enable(), it should be disabled by clk_disable_unprepare(). Fixes:8d9d4bdc49
("hwrng: omap3-rom - Use runtime PM instead of custom functions") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
bb1030d3de
commit
2530a7c236
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ static int __maybe_unused omap_rom_rng_runtime_resume(struct device *dev)
|
||||||
|
|
||||||
r = ddata->rom_rng_call(0, 0, RNG_GEN_PRNG_HW_INIT);
|
r = ddata->rom_rng_call(0, 0, RNG_GEN_PRNG_HW_INIT);
|
||||||
if (r != 0) {
|
if (r != 0) {
|
||||||
clk_disable(ddata->clk);
|
clk_disable_unprepare(ddata->clk);
|
||||||
dev_err(dev, "HW init failed: %d\n", r);
|
dev_err(dev, "HW init failed: %d\n", r);
|
||||||
|
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
Loading…
Reference in a new issue