hwrng: omap3-rom - fix using wrong clk_disable() in omap_rom_rng_runtime_resume()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 14 May 2022 08:42:41 +0000 (16:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:11 +0000 (10:23 +0200)
commit2530a7c23643a67951b67378136ad67034f53fb5
tree8006a08ef8c28a1e2792fe964616de5cce8d1004
parentbb1030d3de10cdd37f73a40a3651200762c45fd0
hwrng: omap3-rom - fix using wrong clk_disable() in omap_rom_rng_runtime_resume()

[ Upstream commit e4e62bbc6aba49a5edb3156ec65f6698ff37d228 ]

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

Fixes: 8d9d4bdc495f ("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>
drivers/char/hw_random/omap3-rom-rng.c