Skip to content

Commit e4e62bb

Browse files
Yang Yingliangherbertx
authored andcommitted
hwrng: omap3-rom - fix using wrong clk_disable() in omap_rom_rng_runtime_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 <yangyingliang@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 2d33f57 commit e4e62bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/char/hw_random/omap3-rom-rng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int __maybe_unused omap_rom_rng_runtime_resume(struct device *dev)
9292

9393
r = ddata->rom_rng_call(0, 0, RNG_GEN_PRNG_HW_INIT);
9494
if (r != 0) {
95-
clk_disable(ddata->clk);
95+
clk_disable_unprepare(ddata->clk);
9696
dev_err(dev, "HW init failed: %d\n", r);
9797

9898
return -EIO;

0 commit comments

Comments
 (0)