Skip to content

Commit

Permalink
hwrng: omap3-rom - fix using wrong clk_disable() in omap_rom_rng_runt…
Browse files Browse the repository at this point in the history
…ime_resume()

'ddata->clk' is enabled by clk_prepare_enable(), it should be disabled
by clk_disable_unprepare().

Fixes: 8d9d4bd ("hwrng: omap3-rom - Use runtime PM instead of custom functions")
Signed-off-by: Yang Yingliang <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Yang Yingliang authored and herbertx committed May 20, 2022
1 parent 2d33f57 commit e4e62bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/hw_random/omap3-rom-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
if (r != 0) {
clk_disable(ddata->clk);
clk_disable_unprepare(ddata->clk);
dev_err(dev, "HW init failed: %d\n", r);

return -EIO;
Expand Down

0 comments on commit e4e62bb

Please sign in to comment.